setFuelConsumptionCoef: Difference between revisions

From Bohemia Interactive Community
m (Add devbranch)
Tag: Reverted
mNo edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 3: Line 3:
|game1= arma3
|game1= arma3
|version1= 2.16
|version1= 2.16
|branch= dev


|arg= local
|arg= local
Line 17: Line 15:
|p1= vehicle : [[Object]]
|p1= vehicle : [[Object]]


|p2= coef: [[Number]] - consumption coefficient (between 0 and 1000). Values larger than 1 increase fuel consumption, and values between 0 and 1 decrease fuel consumption. 0 disables fuel consumption
|p2= coef: [[Number]] in range 0..1000 - Values larger than 1 increase fuel consumption, and values between 0 and 1 decrease fuel consumption. 0 disables fuel consumption


|r1= [[Nothing]]
|r1= [[Nothing]]

Latest revision as of 10:11, 2 January 2026

Hover & click on the images for description

Description

Description:
Sets the fuel consumption coefficient, which is a multiplier of the fuel consumption rate in config. It doesn't affect fuel leakage or refueling.
Groups:
Object Manipulation

Syntax

Syntax:
vehicle setFuelConsumptionCoef coef
Parameters:
vehicle : Object
coef: Number in range 0..1000 - Values larger than 1 increase fuel consumption, and values between 0 and 1 decrease fuel consumption. 0 disables fuel consumption
Return Value:
Nothing

Examples

Example 1:
myTank setFuelConsumptionCoef 10; // consume 10x more fuel than default

Additional Information

See also:
getFuelConsumptionCoef

Notes

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