Jump to content
Sign in to follow this  
pazuzu

No ammo

Recommended Posts

I was wondering if there is a way to detect if a plane is out of ammo?

I'm making an air mission & I have a c130 flying around. Players are in F16's & I have it triggered so if an F16 gets within 70 meters of c130 that plane will rearm, repair & refuel.

I wanted to condition it so the planes have to be out of ammo before they can rearm.

Thanks

Share this post


Link to post
Share on other sites

Try:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">someAmmo vehicle _nameOfVehicle

replacing the _nameOfVehicle variable with whatever the plane's name is.

It should return false if the plane is out of ammo. [Never tried this myself]

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  

×