setFuel: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| ofp |Game name=
| ofp


|1.00|Game version=
|1.00


|arg= local |Multiplayer Arguments=
|arg= local


|eff= global |Multiplayer Effects=
|eff= global


|gr1= Object Manipulation |GROUP1=
|gr1= Object Manipulation


| Sets fuel percentage from 0 (empty) to 1 (full). The vehicle must be [[local]] to the computer where command is executed. |DESCRIPTION=
| Sets fuel percentage from 0 (empty) to 1 (full). The vehicle must be [[local]] to the computer where command is executed.


| vehicle '''setFuel''' amount |SYNTAX=
| vehicle '''setFuel''' amount


|p1= vehicle: [[Object]] |PARAMETER1=
|p1= vehicle: [[Object]]
|p2= amount: [[Number]] |PARAMETER2=
|p2= amount: [[Number]]


| [[Nothing]] |RETURNVALUE=
| [[Nothing]]
   
   
|x1= <code>_jeepOne [[setFuel]] 0.5;</code> |EXAMPLE1=
|x1= <code>_jeepOne [[setFuel]] 0.5;</code>


| [[fuel]], [[getFuelCargo]], [[setFuelCargo]], [[setHit]], [[setAmmo]] |SEEALSO=
| [[fuel]], [[getFuelCargo]], [[setFuelCargo]], [[setHit]], [[setAmmo]]


}}
}}

Revision as of 12:08, 18 January 2021

Hover & click on the images for description

Description

Description:
Sets fuel percentage from 0 (empty) to 1 (full). The vehicle must be local to the computer where command is executed.
Groups:
Object Manipulation

Syntax

Syntax:
vehicle setFuel amount
Parameters:
vehicle: Object
amount: Number
Return Value:
Nothing

Examples

Example 1:
_jeepOne setFuel 0.5;

Additional Information

See also:
fuelgetFuelCargosetFuelCargosetHitsetAmmo

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

Bottom Section