Jump to content
Sign in to follow this  

Recommended Posts

Hey guys,

I need some help with a script/trigger (which ever is best) that makes a plane/helicopter return to base after giving air support. I want this to happen when it has like 10% fuel and/or is completely out of ammo. I just don't know how to check the fuel/ammo and the commands to use from there.

Thanks,

Nightrain :)

Edit: by rtb I mean fly to the edge of the map and get deleted.

Edited by Nightrain

Share this post


Link to post
Share on other sites

fuel and someAmmo to check fuel level and if there's any ammo left.

Once you determine they match your limits use addWaypoint and it's associated commands to make it fly somewhere far away [0,0,0] perhaps then use:

{deleteVehicle _x} forEach crew heli + [heli];

as a waypointStatement to delete it.

Share this post


Link to post
Share on other sites

Thanks man! I'll write something up later and check it!

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  

×