Trouble with gear spawned in a crate

bFe

Member
Hello!

I'm having some trouble with my crate. I have added stuff to spawn in the crate but when I get ingame to test it all i see are 50x M240 and M249 mags, nothing else.

Here is the code for the box: http://pastebin.com/Yv7dqdpN



What did I do wrong?
 
Still disappearing for me after about 30 minutes. Did everything but

Code:
clearWeaponCargoGlobal _this;
clearMagazineCargoGlobal _this;
_this addBackpackCargoGlobal
_this addWeaponCargoGlobal
_this addMagazineCargoGlobal
Also you may need to do this:

Code:
_this setVariable ["permaLoot",true];

not sure where you would put _this setVariable ["permaLoot",true];

And i didnt think the clearweaponcargo blah blah applied to me since my crates were spawned via the 3d editor and not scripted in.
 
But if im happy with the cargo that it spawns by default, is the addition of the addcargo scripts even necessary to keep the server from cleaning up the crates?
 
How do I go about removing objects from overwatch mod? Like random buildings glitched into each other floating objects that come with the mod by default..
 
I'd assume the buildings were added in via an sqf or mission.sqm. If you find it you can get the building name and location and locate the code spawning it in.
 
Back
Top