addMagazineCargo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Armed[ _]Assault(\|.*)]]" to "{{GameCategory|arma1|Scripting Commands}}")
m (Text replacement - " |r1=[[" to " |r1= [[")
(29 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| ofp |Game name=
|game1= ofp
|version1= 1.00


|1.00|Game version=
|game2= ofpe
|version2= 1.00


|gr1 = Containers |GROUP1=
|game3= arma1
|version3= 1.00


|game4= arma2
|version4= 1.00


|game5= arma2oa
|version5= 1.50


|arg= global |Multiplayer Arguments=
|game6= tkoh
|version6= 1.00


|eff= local |Multiplayer Effects=
|game7= arma3
____________________________________________________________________________________________
|version7= 0.50


| 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.
|gr1= Containers
{{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=
|arg= global


|p1= vehicleName: [[Object]] - vehicle to add the magazines to |PARAMETER1=
|eff= local


|p2= [magazineName, count]: [[Array]] |PARAMETER2=
|descr= 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 ({{Icon|localArgument|32}}). For global variant see [[addMagazineCargoGlobal]].}}


|p3= magazineName: [[String]] - magazine name. See [[:Category:Weapons]] for reference about possible values. |PARAMETER3=
|s1= vehicleName [[addMagazineCargo]] [magazineName, count]


|p4= count: [[Number]] - number of magazines to add |PARAMETER4=
|p1= vehicleName: [[Object]] - vehicle to add the magazines to


| [[Nothing]] |RETURNVALUE=
|p2= [magazineName, count]: [[Array]]
____________________________________________________________________________________________
 
 
|p3= magazineName: [[String]] - magazine name. See [[:Category:Weapons]] for reference about possible values.
|x1= <code>_truck [[addMagazineCargo]] ["M16", 5];</code> |EXAMPLE1=
 
____________________________________________________________________________________________
|p4= count: [[Number]] - number of magazines to add
 
|r1= [[Nothing]]
 
|x1= <code>_truck [[addMagazineCargo]] ["M16", 5];</code>
   
   
| [[addMagazineCargoGlobal]], [[addMagazine]], [[addMagazineGlobal]], [[addMagazines]], [[addMagazinePool]], [[addMagazineTurret]], [[clearMagazineCargo]], [[addWeaponCargo]], [[clearWeaponCargo]], [[getMagazineCargo]], [[addItemCargo]], [[addItemCargoGlobal]], [[addMagazineAmmoCargo]] |SEEALSO=
|seealso= [[addMagazineCargoGlobal]], [[addMagazine]], [[addMagazineGlobal]], [[addMagazines]], [[addMagazinePool]], [[addMagazineTurret]], [[clearMagazineCargo]], [[addWeaponCargo]], [[clearWeaponCargo]], [[getMagazineCargo]], [[addItemCargo]], [[addItemCargoGlobal]], [[addMagazineAmmoCargo]]
}}
}}


<h3 style="display:none">Notes</h3>
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
 
<dd class="notedate">Posted on October 24, 2009 - 11:02,  (CEST)
<dt></dt>
<dt class="note">[[User:Sbsmac|Sbsmac]]
<dd class="notedate">Posted on October 24, 2009 - 11:02,  (CEST)</dd>
<dt class="note">[[User:Sbsmac|Sbsmac]]</dt>
<dd class="note"> Only works on clients.
<dd class="note"> Only works on clients.
<!-- Note Section END -->
</dl>
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.46|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
{{GameCategory|arma1|Scripting Commands}}
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]

Revision as of 23:35, 7 August 2021

Hover & click on the images for description

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
In Arma 3, arguments for this command must be local (LALocal). For global variant see addMagazineCargoGlobal.
Groups:
Containers

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

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 October 24, 2009 - 11:02, (CEST)
Sbsmac
Only works on clients.