setRepairCargo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <!-- (DIS)?CONTINUE Notes -->" to "")
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *I([a-z ])" to "$1 - i$2")
 
(20 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| ofp
|game1= ofp
|1.00
|version1= 1.00
 
|game2= ofpe
|version2= 1.00
 
|game3= arma1
|version3= 1.00
 
|game4= arma2
|version4= 1.00
 
|game5= arma2oa
|version5= 1.50
 
|game6= tkoh
|version6= 1.00
 
|game7= arma3
|version7= 0.50
 
|arg= local
|arg= local
|eff= global
|eff= global
Line 8: Line 27:
|gr1= Vehicle Inventory
|gr1= Vehicle Inventory


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


| vehicleName '''setRepairCargo''' amount
|s1= vehicleName [[setRepairCargo]] amount


|p1= vehicleName: [[Object]]
|p1= vehicleName: [[Object]]


|p2= amount: [[Number]] range 0 to 1
|p2= amount: [[Number]] - in range 0 to 1


| [[Nothing]]
|r1= [[Nothing]]
 
|x1= <code>_repairTruck1 '''setRepairCargo''' 0</code>


|seealso= [[getRepairCargo]], [[setAmmoCargo]], [[setFuelCargo]]
|x1= <sqf>_repairTruck1 setRepairCargo 0;</sqf>
 
|seealso= [[getRepairCargo]] [[setAmmoCargo]] [[setFuelCargo]]
}}
}}




{{GameCategory|arma1|Scripting Commands}}
<dl class="command_description">
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}


<dl class="command_description">
<dt></dt>
<dt></dt>
<dd class="notedate">Posted on July 10, 2015 - 19:36 (UTC)</dd>
<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>

Latest revision as of 15: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.