fuel

From Bohemia Interactive Community
Revision as of 01:19, 2 August 2006 by Kronzky (talk | contribs)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Hover & click on the images for description

Description

Description:
Checks how much fuel is left in the gas tank of a vehicle.
Groups:
Uncategorised

Syntax

Syntax:
fuel vehicle
Parameters:
vehicle: Object
Return Value:
Number - The returned number is in range 0 (empty tank) to 1 (full tank).

Examples

Example 1:
? (fuel (vehicle player) == 0) : hint "The vehicle is out of fuel!"

Additional Information

See also:
setFuel

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section