getFuelConsumptionCoef: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (2.16 -> 2.18)
Tag: Reverted
m (Text replacement - "↵|branch= dev↵↵" to " ")
Tag: Manual revert
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:


|game1= arma3
|game1= arma3
|version1= 2.18
|version1= 2.16
 
|branch= dev


|arg= global
|arg= global

Latest revision as of 18:41, 26 March 2024

Hover & click on the images for description

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