OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: HedgeHog on 16 Oct 2008, 16:04:06
-
How to set fuel and/or ammo quantity as condition for a trigger?
For example, when the car's fuel tank is half full, the trigger turns true. Same for ammos.
Thx! :D
-
use the command Fuel (http://www.ofpec.com/COMREF/index.php?action=list&game=All&letter=f#145) to get the fuel on a scale of 0-1.
Using ammo (http://www.ofpec.com/COMREF/#20) will be trickier, as it only gives the number of rounds left in the current magazine.
To find the max you would need some in depth cfg knowledge.
See if the guys in the addon department could help.
Luke
-
Well, you could do a (count magazine), but it really depends on what type of weapon it is, i.e. is the ammo based on magazines or not. If it's not based on magazines, using ammo should do the trick.
Oh, and hi. :D