Jump to content
Sign in to follow this  
granQ

any possible way to detect weapons in an ammo box?

Recommended Posts

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

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

not possible from what i know

maybe someone knows a way?

Share this post


Link to post
Share on other sites

ok sad_o.gif

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

as I suspected, damnit, well thanks for the confirmation.

Share this post


Link to post
Share on other sites

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×