granQ 293 Posted November 24, 2008 Hello.. i kinda need this badly or I need to think of a new idea. What I want to do is to count the weapons in an ammobox, when it reaches zero, remove it. Share this post Link to post Share on other sites
Taurus 20 Posted November 24, 2008 count magazines ammoBox; count weapons ammoBox; Perhaps? CheckAmmoDelete.sqf <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_ammoBox = _this select 0; while {((count magazines _ammoBox) > 0) and ((count weapons _ammoBox) > 0)} do {   //Nathing   sleep 0.5; }; deleteVehicle _ammoBox; From ammoBox initLine nil = [this] execVM "CheckAmmoDelete.sqf" This is not tested, I'm at work right now. Share this post Link to post Share on other sites
.kju 3245 Posted November 24, 2008 not possible from what i know maybe someone knows a way? Share this post Link to post Share on other sites
raedor 8 Posted November 24, 2008 No, there's no way to get mag/weapon cargo yet. Share this post Link to post Share on other sites
Taurus 20 Posted November 24, 2008 ok Then mr Spruce, my suggestion didn't work. Perhaps it "might" for soldiers tho hehe! Share this post Link to post Share on other sites
granQ 293 Posted November 24, 2008 as I suspected, damnit, well thanks for the confirmation. Share this post Link to post Share on other sites
VictorFarbau 0 Posted November 24, 2008 As soon as anybody finds a way - I'll integrate it into VFAI. It's been one of the shortcomings that people most complained about in VFAI. Cheers, VictorFarbau Share this post Link to post Share on other sites