setRepairCargo: 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|SETREPAIRCARGO]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|SETREPAIRCARGO]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|SETREPAIRCARGO]]
[[Category:Scripting Commands ArmA|SETREPAIRCARGO]]


| ofp |= Game name


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


| Set amount of repair resources in cargo space of repair vehicle.
Amount 1 is full cargo. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| vehicle '''setRepairCargo''' 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>repairTruck1 setRepairCargo 0</pre> |= Example 1
____________________________________________________________________________________________


[[Nothing]]
|  |= See also


'''Description:'''
}}


Set '''amount''' of repair resources in cargo space of repair '''vehicle'''.<br>
<h3 style="display:none">Notes</h3>
Amount 1 is full cargo.
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
</dl>


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

Revision as of 23:27, 1 August 2006

Hover & click on the images for description

Description

Description:
Set amount of repair resources in cargo space of repair vehicle. Amount 1 is full cargo.
Groups:
Uncategorised

Syntax

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

Examples

Example 1:
repairTruck1 setRepairCargo 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