setFuelConsumptionCoef: Difference between revisions
Jump to navigation
Jump to search
m (2.16 -> 2.18) Tag: Reverted |
Lou Montana (talk | contribs) 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. | |version1= 2.16 | ||
|arg= local | |arg= local |
Latest revision as of 17:41, 26 March 2024
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 - 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
- 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 or on the Forums.
Only post proven facts here! Add Note