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

Will not Empty Ammo Crate ?

Recommended Posts

Any idea why this will not clear the Ammo Crate ? for some reason is is full ?

I have publicVariable "TAG_ammobox" because i need to create a marker local , will that be causing the issue ?


if(not isServer) exitWith{};

BLAR BLAR BLAR CODE.....then


	TAG_ammobox = createVehicle ["TKSpecialWeapons_EP1",getmarkerpos "marker_clear", [], 0, "NONE"];  
	clearWeaponCargo TAG_ammobox;
	clearMagazineCargo TAG_ammobox;
	publicVariable "TAG_ammobox";


Share this post


Link to post
Share on other sites

Are you testing this as a client on a dedicated server?

Try this:

TAG_ammobox = createVehicle ["TKSpecialWeapons_EP1",getmarkerpos "marker_clear", [], 0, "NONE"];

TAG_ammobox setVehicleInit "clearWeaponCargo this; clearMagazineCargo this";

processInitCommands;

Share this post


Link to post
Share on other sites

Even better to use the clearWeaponCargoGlobal/clearMagazineCargoGlobal commands.

Share this post


Link to post
Share on other sites
Even better to use the clearWeaponCargoGlobal/clearMagazineCargoGlobal commands.

Indeed :)

Share this post


Link to post
Share on other sites

wont

removeallweapons this;

work ? Then u can add whatever u want after.. or am i outdated?

I want the ammo box to be emty, but filed ONLY with my selection of items..

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  

×