Difference between revisions of "setRepairCargo"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Game name" to "|Game name=")
m (Text replacement - "[[Category:Scripting Commands ArmA|" to "[[Category:Scripting Commands Armed Assault|")
 
(3 intermediate revisions by the same user not shown)
Line 40: Line 40:
 
[[Category:Scripting Commands OFP 1.96|SETREPAIRCARGO]]
 
[[Category:Scripting Commands OFP 1.96|SETREPAIRCARGO]]
 
[[Category:Scripting Commands OFP 1.46|SETREPAIRCARGO]]
 
[[Category:Scripting Commands OFP 1.46|SETREPAIRCARGO]]
[[Category:Scripting Commands ArmA|SETREPAIRCARGO]]
+
[[Category:Scripting Commands Armed Assault|SETREPAIRCARGO]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
+
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
 
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
 
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
+
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]
  
 
<!-- CONTINUE Notes -->
 
<!-- CONTINUE Notes -->
Line 50: Line 50:
 
<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 -->
 
<!-- DISCONTINUE Notes -->

Latest revision as of 20:37, 3 June 2020

Introduced with Operation Flashpoint version 1.001.00Arguments of this scripting command have to be local to the client the command is executed onEffects of this scripting command are broadcasted over the network and happen on every computer in the network
Hover & click on the images for descriptions

Description

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

Syntax

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

Examples

Example 1:
_repairTruck1 setRepairCargo 0

Additional Information

See also:
getRepairCargosetAmmoCargosetFuelCargo

Notes

i
Only post proven facts here. Report bugs on the feedback tracker. Use the Talk page or the Forums for discussions.

Notes

Bottom Section

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