UnhappySpawning a tent with items inside.

Posts 1–6 of 6 · Page 1 of 1
Spawning a tent with items inside.
Is it possible to do this? I have a script that spawns a medic box with items inside and I've tried to change "MedBox0" to "TentStorage". and this works, but it spawns a tent with nothing inside. It would be great if people could help

Thanks.
tent only has a certain amount of slots anyway
Hi could you please spawn me some items, in a med box?
Quote Originally Posted by predator3579 View Post
tent only has a certain amount of slots anyway
Just for making bases quickly really , instead of moving things over.

Quote Originally Posted by horseboy View Post
Hi could you please spawn me some items, in a med box?
Only if you pay me, starting a spawning business anyways.
Code:
private["_case"];
_classname = "TentStorage";
_dir = getdir player;
_pos = getposATL player;
_pos = [(_pos select 0)+2*sin(_dir),(_pos select 1)+1*cos(_dir), (_pos select 2)];
_tentbox = createVehicle [_classname, _pos, [], 0, "CAN_COLLIDE"];
_tentbox setDir _dir;
_tentbox setposATL _pos;

_backpacks = [
//"CZ_VestPouch_EP1",
"DZ_Patrol_Pack_EP1",
"DZ_Assault_Pack_EP1",
"DZ_CivilBackpack_EP1",
"DZ_Backpack_EP1",
"DZ_ALICE_Pack_EP1"
];

_inventory = [
"ItemCompass",
"ItemEtool",
"ItemFlashlightRed",
"ItemGPS",
"ItemHatchet",
"ItemKnife",
"ItemMap",
"ItemMatchbox"
];

_items = [
"FoodSteakCooked",
"FoodSteakCooked",
"ItemAntibiotic",
"ItemBandage",
"ItemBandage",
"ItemBandage",
"ItemBandage",
"ItemBloodbag",
"ItemEpinephrine",
"ItemHeatPack",
"ItemMorphine",
"ItemPainkiller",
"ItemPainkiller",
"ItemWaterbottle",
"NVGoggles"
];

_skins = [
""
];

_weapons = [
"DMR",
"m16a4",
"m16a4",
"M9SD",
"M9SD"
];

_ammo = [
"20Rnd_556x45_Stanag",
"20Rnd_556x45_Stanag",
"20Rnd_556x45_Stanag",
"20Rnd_556x45_Stanag",
"15Rnd_9x19_M9SD",
"15Rnd_9x19_M9SD",
"15Rnd_9x19_M9SD",
"15Rnd_9x19_M9SD"
];

_explosives = [
""
];

clearWeaponCargoGlobal _tentbox;
clearMagazineCargoGlobal _tentbox;
clearBackpackCargoGlobal _tentbox;

{_tentbox addBackpackCargoGlobal [_x, 1];} forEach _backpacks;
{_tentbox addWeaponCargoGlobal [_x, 1];} forEach _inventory;
{_tentbox addMagazineCargoGlobal [_x, 1];} forEach _items;
{_tentbox addMagazineCargoGlobal [_x, 1];} forEach _skins;
{_tentbox addWeaponCargoGlobal [_x, 1];} forEach _weapons;
{_tentbox addMagazineCargoGlobal [_x, 1];} forEach _ammo;
{_tentbox addMagazineCargoGlobal [_x, 1];} forEach _explosives;


sleep 3;


titleText [format["M16 Supply Tent Spawned"],"PLAIN DOWN"]; titleFadeOut 12;
     
    if (true) exitWith {};
Will try this in a min
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?