getFuelConsumptionCoef

From Bohemia Interactive Community
Revision as of 15:12, 8 February 2024 by Dedmen (talk | contribs) (2.16 -> 2.18)
Jump to navigation Jump to search
Hover & click on the images for description
Only available in Development branch(es) until its release with Arma 3 patch v2.18.

Description

Description:
Returns the fuel consumption coefficient, which is a multiplier of the fuel consumption rate in config.
Groups:
Object Manipulation

Syntax

Syntax:
getFuelConsumptionCoef vehicle
Parameters:
vehicle : Object
Return Value:
Number - fuel consumption coefficient

Examples

Example 1:
if (getFuelConsumptionCoef myCar > 1) then { hint "You should have a mechanic look at your engine!" }

Additional Information

See also:
setFuelConsumptionCoef

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