addMagazineCargo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (see also)
m (Text replacement - "|= Game version" to "|Game version=")
(13 intermediate revisions by 5 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. |= 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. <br><br>
 
{{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 |= Parameter 1
|p1= vehicleName: [[Object]] - vehicle to add the magazines to |PARAMETER1=


|p2= [magazineName, count]: [[Array]] |= Parameter 2
|p2= [magazineName, count]: [[Array]] |PARAMETER2=


|p3= magazineName: [[String]] - magazine name. See the topic [[:Category:Weapons]] for reference about possible values. |= Parameter 3
|p3= magazineName: [[String]] - magazine name. See the topic [[:Category:Weapons]] for reference about possible values. |PARAMETER3=


|p4= count: [[Number]] - number of magazines to add |= Parameter 4
|p4= count: [[Number]] - number of magazines to add |PARAMETER4=


| [[Nothing]] |= Return value
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>_truck [[addMagazineCargo]] ["M16", 5];</code> |= Example 1
|x1= <code>_truck [[addMagazineCargo]] ["M16", 5];</code> |EXAMPLE1=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
| [[addMagazineCargoGlobal]], [[addMagazine]], [[addMagazineGlobal]], [[addMagazine_array]], [[addMagazines]], [[addMagazinePool]], [[addMagazineTurret]], [[clearMagazineCargo]], [[addWeaponCargo]], [[clearWeaponCargo]], [[getMagazineCargo]], [[addItemCargo]], [[addItemCargoGlobal]], [[addMagazineAmmoCargo]] |= See also
| [[addMagazineCargoGlobal]], [[addMagazine]], [[addMagazineGlobal]], [[addMagazines]], [[addMagazinePool]], [[addMagazineTurret]], [[clearMagazineCargo]], [[addWeaponCargo]], [[clearWeaponCargo]], [[getMagazineCargo]], [[addItemCargo]], [[addItemCargoGlobal]], [[addMagazineAmmoCargo]] |SEEALSO=


}}
}}
Line 37: Line 39:
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
Only works on clients. [[User:Sbsmac|Sbsmac]] 11:02, 24 October 2009 (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.
<!-- Note Section END -->
<!-- Note Section END -->
</dl>
</dl>
Line 44: Line 47:


[[Category:Scripting Commands|ADDMAGAZINECARGO]]
[[Category:Scripting Commands|ADDMAGAZINECARGO]]
[[Category:Scripting Commands OFP 1.99|ADDMAGAZINECARGO]]
[[Category:Scripting Commands OFP 1.96|ADDMAGAZINECARGO]]
[[Category:Scripting Commands OFP 1.96|ADDMAGAZINECARGO]]
[[Category:Scripting Commands OFP 1.46|ADDMAGAZINECARGO]]
[[Category:Scripting Commands OFP 1.46|ADDMAGAZINECARGO]]

Revision as of 02:17, 31 August 2019

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.

Template:Feature arma3
Groups:
Uncategorised

Syntax

Syntax:
vehicleName addMagazineCargo [magazineName, count]
Parameters:
vehicleName: Object - vehicle to add the magazines to
[magazineName, count]: Array
magazineName: String - magazine name. See the topic 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

Notes

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

Bottom Section