Difference between revisions of "fuel"

From Bohemia Interactive Community
Jump to navigation Jump to search
Line 1: Line 1:
[[Category:Scripting Commands]]
+
[[Category:Scripting Commands|F]]
[[Category:Scripting Commands OFP 1.97]]
+
[[Category:Scripting Commands OFP 1.97|F]]
[[Category:Scripting Commands OFP 1.46]]
+
[[Category:Scripting Commands OFP 1.46|F]]
[[Category:Scripting Commands ArmA]]
+
[[Category:Scripting Commands ArmA|F]]
  
 
back to [[Scripting_Reference#F|COMREF]]
 
back to [[Scripting_Reference#F|COMREF]]

Revision as of 17:40, 22 April 2006


back to COMREF

fuel vehicle


Operand types:

vehicle: Object

Type of returned value:

Number

Description:

Check how much fuel the vehicle has left in the gas tank, in range 0 to 1.


Example:

? (fuel (vehicle player) <25) : hint "Fuel is running low"