Is this box spawn going to work?

Posts 1–3 of 3 · Page 1 of 1
Is this box spawn going to work?
Just wondering if this little crate spawn script I'm trying to write will work.

Code:
hint "Spawning Crate";
titleText ["USBasicWeapons_EP1 filled with guns and ammo spawned!", "PLAIN DOWN"]; titlefadeout 2;
_pos = [((getPosATL player) select 0) + 3, ((getPosATL player) select 1) + 3, (getPosATL player) select 2];

//call compile (""lolcrate = 'USBasicWeapons_EP1' creat""+""eVehicle %1;"");

 call compile format ["[0, nil, [0, %1], '%2'] call ssppwwnnn;", _pos, 'USBasicWeapons_EP1'];

	lolcrate = _pos nearestObject 'USBasicWeapons_EP1z';


sleep 5;

_crate2 = "if (isServer) then
{
	call compile (""{lolcrate addWea""+""ponCargoGlobal [_x, 50];} forEach
	['M4A1_AIM_SD_camo','BAF_AS50_scoped','DMR','M9SD','M40A3','Binocular_Vector',
	'NVGoggles','ItemGPS','ItemKnife','ItemHatchet','ItemMatchbox','ItemToolbox',
	'ItemWaterbottle','FoodSteakCooked','ItemBandage','ItemPainkiller','ItemMorphine',
	'ItemAntibiotic','ItemBloodbag','Skin_Camo1_DZ','Skin_Sniper1_DZ','PartWheel',
	'PartFueltank','PartGlass','PartEngine','PartGeneric','PartVRotor','ItemJerrycan',
	'ItemTent','Skin_Camo1_DZ','Skin_Sniper1_DZ','DZ_Backpack_EP1'];"");
};";
[_crate2] execVM "scr\exec.sqf";

sleep 5;

_crate3 = "if (isServer) then
{
	call compile (""{lolcrate addMagazi""+""neCargoGlobal [_x, 50];} forEach
	[30Rnd_556x45_StanagSD','20Rnd_762x51_DMR','15Rnd_9x19_M9SD',
	'10Rnd_127x99_m107','PipeBomb'];"");
};";
[_crate3] execVM "scr\exec.sqf";

sleep 5;

_crate4 = "if (isServer) then
{
	call compile (""lolcrate addBackpa""+""ckCargoGlobal ['DZ_Backpack_EP1', 25];"");
};";
[_crate4] execVM "scr\exec.sqf";
If its not can yall give me some advice on why it wont? If Im right this should give me 50 of each of those items.
Gave it a quick look, looks alright. Might test it later.

---------- Post added at 08:22 AM ---------- Previous post was at 08:16 AM ----------

Look at other crate scripts and see if its similar
Honestly i took a crate script and cut out what I didn't want and added a bunch of stuff in. I got GBd last night so I cant test this for a bit. Thanks. Give it a try! I hope it works for you. Was kinda sick of spawning a crate to get a bunch of stuff I dont want or need or arn't legit. I've got a legit key I don't hack on at all and I keep a camp stocked up with supplies for it. This would make it so much easier to do than spawning load out after load out.
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us