setFuelCargo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|SETFUELCARGO]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|SETFUELCARGO]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|SETFUELCARGO]]
[[Category:Scripting Commands ArmA|SETFUELCARGO]]


| ofp |= Game name


<h2 style="color:#000066">'''''vehicle'' setFuelCargo ''amount'''''</h2>
|1.00|= Game version
____________________________________________________________________________________________


| Set fuel amount in cargo space of refuel vehicle. Fuel 1 is full gas tank, 0 is empty. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| vehicle '''setFuelCargo''' amount |= Syntax


'''vehicle:''' [[Object]]
|p1= vehicle: [[Object]] |= Parameter 1


'''amount:''' [[Number]]
|p2= amount: [[Number]] |= Parameter 2


'''Type of returned value:'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>refuelTruckOne setFuelCargo 0</pre> |= Example 1
____________________________________________________________________________________________


[[Nothing]]
|  |= See also


'''Description:'''
}}


Set fuel '''amount''' in cargo space of refuel '''vehicle'''.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


Fuel 1 is full gas tank, 0 is empty.
<!-- Note Section END -->
</dl>


 
<h3 style="display:none">Bottom Section</h3>
'''Example:'''
[[Category:Scripting Commands|SETFUELCARGO]]
 
[[Category:Scripting Commands OFP 1.96|SETFUELCARGO]]
refuelTruckOne '''setFuelCargo''' 0
[[Category:Scripting Commands OFP 1.46|SETFUELCARGO]]
[[Category:Scripting Commands ArmA|SETFUELCARGO]]

Revision as of 23:16, 1 August 2006

Hover & click on the images for description

Description

Description:
Set fuel amount in cargo space of refuel vehicle. Fuel 1 is full gas tank, 0 is empty.
Groups:
Uncategorised

Syntax

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

Examples

Example 1:
refuelTruckOne setFuelCargo 0

Additional Information

See also:
See also needed

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

Notes

Bottom Section