Jump to content
Sign in to follow this  
1para{god-father}

Spawn Ammo Crate - can not take things out

Recommended Posts

I spawn in an ammo crate, but for some reason when I do this on a hosted server there is ortiginal stuff in the crate as well and i can not get anything out of the crate ?

Any idea why ?

psammobox = createVehicle ["BAF_Launchers", _paraland, [], 0, "NONE"];
sleep 0.5;
clearWeaponCargo psammobox;
clearMagazineCargo psammobox;
sleep 0.5;
psammobox addWeaponCargo ["MAAWS", 3];
psammobox addMagazineCargo ["MAAWS_HEAT",7];

Share this post


Link to post
Share on other sites

try modifying the content via setVehicleInit:

psammobox = createVehicle ["BAF_Launchers", _paraland, [], 0, "NONE"];
psammobox setVehicleInit "clearWeaponCargo this; clearMagazineCargo this; this addWeaponCargo [""MAAWS"", 3]; this addMagazineCargo [""MAAWS_HEAT"",7];";
processInitCommands;

Share this post


Link to post
Share on other sites

Hi,

You should use the already global commands for such, no need to use init commands.

clearMagazineCargoGlobal

clearWeaponCargoGlobal

addWeaponCargoGlobal

addMagazineCargoGlobal

_neo_

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×