Difference between revisions of "addMagazineCargo"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (Text replacement - "[[Category:Scripting_Commands_Take_On_Helicopters" to "[[Category:Scripting Commands Take On Helicopters")
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|= Comments
+
{{Command|Comments=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| ofp |= Game name
+
| ofp |Game name=
  
|1.00|= Game version
+
|1.00|Game version=
  
|arg= global |= Arguments in MP
+
|arg= global |Multiplayer Arguments=
  
|eff= local |= Effects in MP
+
|eff= local |Multiplayer Effects=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| Add magazines to the cargo space of vehicles, which can be taken out by infantry units. Once the magazine cargo space is filled up, any further addMagazineCargo commands are ignored. <br><br>
+
| Add magazines to the cargo space of vehicles, which can be taken out by infantry units. Once the magazine cargo space is filled up, any further addMagazineCargo commands are ignored.
 
+
{{Feature arma3|In Arma 3, arguments for this command must be local ({{EffArg|cmd|arg|loc}}). For global variant see [[addMagazineCargoGlobal]].}} |DESCRIPTION=
{{Feature arma3|In Arma 3, arguments for this command must be local ({{EffArg|cmd|arg|loc}}). For global variant see [[addMagazineCargoGlobal]]}}|DESCRIPTION=
 
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| vehicleName '''addMagazineCargo''' [magazineName, count] |SYNTAX=
+
| vehicleName [[addMagazineCargo]] [magazineName, count] |SYNTAX=
  
 
|p1= vehicleName: [[Object]] - vehicle to add the magazines to |PARAMETER1=
 
|p1= vehicleName: [[Object]] - vehicle to add the magazines to |PARAMETER1=
Line 22: Line 21:
 
|p2= [magazineName, count]: [[Array]] |PARAMETER2=
 
|p2= [magazineName, count]: [[Array]] |PARAMETER2=
  
|p3= magazineName: [[String]] - magazine name. See the topic [[:Category:Weapons]] for reference about possible values. |PARAMETER3=
+
|p3= magazineName: [[String]] - magazine name. See [[:Category:Weapons]] for reference about possible values. |PARAMETER3=
  
 
|p4= count: [[Number]] - number of magazines to add |PARAMETER4=
 
|p4= count: [[Number]] - number of magazines to add |PARAMETER4=
Line 33: Line 32:
 
   
 
   
 
| [[addMagazineCargoGlobal]], [[addMagazine]], [[addMagazineGlobal]], [[addMagazines]], [[addMagazinePool]], [[addMagazineTurret]], [[clearMagazineCargo]], [[addWeaponCargo]], [[clearWeaponCargo]], [[getMagazineCargo]], [[addItemCargo]], [[addItemCargoGlobal]], [[addMagazineAmmoCargo]] |SEEALSO=
 
| [[addMagazineCargoGlobal]], [[addMagazine]], [[addMagazineGlobal]], [[addMagazines]], [[addMagazinePool]], [[addMagazineTurret]], [[clearMagazineCargo]], [[addWeaponCargo]], [[clearWeaponCargo]], [[getMagazineCargo]], [[addItemCargo]], [[addItemCargoGlobal]], [[addMagazineAmmoCargo]] |SEEALSO=
 
 
}}
 
}}
  
Line 40: Line 38:
 
<!-- Note Section BEGIN -->
 
<!-- Note Section BEGIN -->
 
<dd class="notedate">Posted on October 24, 2009 - 11:02,  (CEST)
 
<dd class="notedate">Posted on October 24, 2009 - 11:02,  (CEST)
<dt class="note">[[User:Sbsmac|Sbsmac]]<dd class="note"> Only works on clients.
+
<dt class="note">[[User:Sbsmac|Sbsmac]]
 +
<dd class="note"> Only works on clients.
 
<!-- Note Section END -->
 
<!-- Note Section END -->
 
</dl>
 
</dl>
Line 46: Line 45:
 
<h3 style="display:none">Bottom Section</h3>
 
<h3 style="display:none">Bottom Section</h3>
  
[[Category:Scripting Commands|ADDMAGAZINECARGO]]
+
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.99|ADDMAGAZINECARGO]]
+
[[Category:Scripting Commands OFP 1.46|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|ADDMAGAZINECARGO]]
+
[[Category:Scripting Commands OFP 1.96|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.46|ADDMAGAZINECARGO]]
+
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA|ADDMAGAZINECARGO]]
+
[[Category:Scripting Commands ArmA|{{uc:{{PAGENAME}}}}]]
 +
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
 +
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
 +
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]
 
[[Category:Command_Group:_Weapons|{{uc:{{PAGENAME}}}}]]
 
[[Category:Command_Group:_Weapons|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
+
[[Category:Command Group: Containers|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
 
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
 

Latest revision as of 02:56, 6 April 2020

Introduced with Operation Flashpoint version 1.001.00
Arguments of this scripting command don't have to be local to the client the command is executed onEffects of this scripting command are not broadcasted over the network and remain local to the client the command is executed on
Hover & click on the images for descriptions

Description

Description:
Add magazines to the cargo space of vehicles, which can be taken out by infantry units. Once the magazine cargo space is filled up, any further addMagazineCargo commands are ignored.
Arma 3 logo black.png
In Arma 3, arguments for this command must be local (Arguments of this scripting command have to be local to the client the command is executed on). For global variant see addMagazineCargoGlobal.

Syntax

Syntax:
vehicleName addMagazineCargo [magazineName, count]
Parameters:
vehicleName: Object - vehicle to add the magazines to
[magazineName, count]: Array
magazineName: String - magazine name. See Category:Weapons for reference about possible values.
count: Number - number of magazines to add
Return Value:
Nothing

Examples

Example 1:
_truck addMagazineCargo ["M16", 5];

Additional Information

See also:
addMagazineCargoGlobaladdMagazineaddMagazineGlobaladdMagazinesaddMagazinePooladdMagazineTurretclearMagazineCargoaddWeaponCargoclearWeaponCargogetMagazineCargoaddItemCargoaddItemCargoGlobaladdMagazineAmmoCargo

Notes

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

Notes

Posted on October 24, 2009 - 11:02, (CEST)
Sbsmac
Only works on clients.

Bottom Section