BIS_fnc_moduleFuel

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 3 version 1.00
  Arguments of this scripting function have to be local to the client the function is executed onEffects of this scripting function are broadcasted over the network and happen on every computer in the network

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.00

Description

Description:
Set fuel of linked units' vehicles.
Regarding locality: unit's vehicle must be local to the machine, the unit itself can be remote.

Syntax

Syntax:
[logic, units, isActivated] call BIS_fnc_moduleFuel
Parameters:
logic: Object - the logic. Possible setVariable parameter:
  • "value": Number - (Optional, default 0) wanted fuel level, in range 0..1
units: Array of Objects - list of units
isActivated: Boolean - (Optional, default true) if true, the fuel is set
Return Value:
Boolean - true when done, even if isActivated equals false

Examples

Example 1:
[myLogic, [unit1, unit2, vehicle1], true] call BIS_fnc_moduleFuel;

Additional Information

Execution:
call
Multiplayer:
-
See also:
fuelsetFuel

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section