Jump to content
Sign in to follow this  
scroll_tro0l

Trigger on no ammo

Recommended Posts

Hey,

I just need to know how to make a trigger that sets off when a specific vehicle (ah1) runs out of ammo. It can also be triggered by firing but it must be a trigger so that I can delay it by 15-30 seconds.

Thanks ahead of time,

Scroll Tro0L

Share this post


Link to post
Share on other sites

Condition:

not someAmmo ah1

On activation:

nul=[] spawn {sleep (15 + random 15); ah1 vehicleChat "We are out of ammo!";};

:rolleyes:

Share this post


Link to post
Share on other sites

Does countermeasures (and smoke for those kinds of vehicles) count as "someAmmo"? Could complicate things.

Share this post


Link to post
Share on other sites
Does countermeasures (and smoke for those kinds of vehicles) count as "someAmmo"? Could complicate things.

No. Seems it works only for "lethal" weapons :)

Share this post


Link to post
Share on other sites

Perhaps you can try creating a script with something like:

this setvehicleammo=1;this removeMagazine/Weapon "everything else"

and then use a count script to check the other ammunition and add them back accordingly. You'd probably have to create a delay so that the scripts run in this order:

1- Script A checks number of ammunition

2- Script B refills Vehicle completely then empties all weapons

3- Script B uses number from Script A to refill the ammo to where it was.

Total guess from an editing amateur, let me know how it turns out.

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  

×