setRepairCargo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *I([a-z ])" to "$1 - i$2")
 
(46 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| ofp |= Game name
|game1= ofp
|1.00|= Game version
|version1= 1.00
|arg= local|= Arguments in MP
|eff= global|= Effects in MP
____________________________________________________________________________________________


| Set amount of repair resources in cargo space of repair vehicle.
|game2= ofpe
Amount 1 is full cargo. |DESCRIPTION=
|version2= 1.00
____________________________________________________________________________________________


| vehicleName '''setRepairCargo''' amount |SYNTAX=
|game3= arma1
|version3= 1.00


|p1= vehicleName: [[Object]] |PARAMETER1=
|game4= arma2
|version4= 1.00


|p2= amount: [[Number]] range 0 to 1|PARAMETER2=
|game5= arma2oa
|version5= 1.50


| [[Nothing]] |RETURNVALUE=
|game6= tkoh
____________________________________________________________________________________________
|version6= 1.00
 
|x1= <code>_repairTruck1 '''setRepairCargo''' 0</code> |EXAMPLE1=
____________________________________________________________________________________________


| [[getRepairCargo]], [[setAmmoCargo]], [[setFuelCargo]] |SEEALSO=
|game7= arma3
|version7= 0.50


}}
|arg= local
|eff= global
 
|gr1= Vehicle Inventory
 
|descr= Set amount of repair resources in cargo space of repair vehicle.
Amount 1 is full cargo.
 
|s1= vehicleName [[setRepairCargo]] amount
 
|p1= vehicleName: [[Object]]
 
|p2= amount: [[Number]] - in range 0 to 1
 
|r1= [[Nothing]]


<h3 style="display:none">Notes</h3>
|x1= <sqf>_repairTruck1 setRepairCargo 0;</sqf>
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|seealso= [[getRepairCargo]] [[setAmmoCargo]] [[setFuelCargo]]
</dl>
}}


<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|SETREPAIRCARGO]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|SETREPAIRCARGO]]
[[Category:Scripting Commands OFP 1.46|SETREPAIRCARGO]]
[[Category:Scripting Commands ArmA|SETREPAIRCARGO]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]


<!-- CONTINUE Notes -->
<dl class="command_description">
<dl class="command_description">
<dd class="notedate">Posted on July 10, 2015 - 19:36 (UTC)</dd>
 
<dt></dt>
<dd class="notedate">Posted on 2015-07-10 - 19:36 (UTC)</dd>
<dt class="note">[[User:Waffle SS.|Waffle SS.]]</dt>
<dt class="note">[[User:Waffle SS.|Waffle SS.]]</dt>
<dd class="note">
<dd class="note">
(ArmA 3 1.44) '''setRepairCargo''' will have no effect if the vehicle doesn't support [[getRepairCargo]].
(Arma 3 1.44) '''setRepairCargo''' will have no effect if the vehicle doesn't support [[getRepairCargo]].
</dd>
</dd>
</dl>
</dl>
<!-- DISCONTINUE Notes -->

Latest revision as of 16:33, 8 November 2023

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:
Vehicle Inventory

Syntax

Syntax:
vehicleName setRepairCargo amount
Parameters:
vehicleName: Object
amount: Number - in range 0 to 1
Return Value:
Nothing

Examples

Example 1:
_repairTruck1 setRepairCargo 0;

Additional Information

See also:
getRepairCargo setAmmoCargo setFuelCargo

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


Posted on 2015-07-10 - 19:36 (UTC)
Waffle SS.
(Arma 3 1.44) setRepairCargo will have no effect if the vehicle doesn't support getRepairCargo.