addMagazineAmmoCargo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("serv...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma3|Game name=
| arma3


|1.32|Game version=
|1.32


|arg= global |Multiplayer Arguments=
|arg= global |Multiplayer Arguments=
Line 9: Line 9:
|eff= global|Multiplayer Effects=
|eff= global|Multiplayer Effects=


|gr1= Vehicle Inventory |GROUP1=
|gr1= Vehicle Inventory


| Adds magazines with specified ammo count to the cargo space of a vehicle or a container.|DESCRIPTION=
| Adds magazines with specified ammo count to the cargo space of a vehicle or a container.


| cargospace [[addMagazineAmmoCargo]] [magazine, quantity, ammocount] |SYNTAX=
| cargospace [[addMagazineAmmoCargo]] [magazine, quantity, ammocount]


|p1= cargospace: [[Object]] - vehicle or container or weaponholder |PARAMETER1=
|p1= cargospace: [[Object]] - vehicle or container or weaponholder


|p2= [magazine, quantity, ammocount]: [[Array]] |PARAMETER2=
|p2= [magazine, quantity, ammocount]: [[Array]]


|p3= magazine: [[String]] - magazine class name |PARAMETER3=
|p3= magazine: [[String]] - magazine class name


|p4= quantity: [[Number]] - number of magazines to add |PARAMETER4=
|p4= quantity: [[Number]] - number of magazines to add


|p5= ammocount: [[Number]] - ammo count in each magazine|PARAMETER5=
|p5= ammocount: [[Number]] - ammo count in each magazine


| [[Nothing]] |RETURNVALUE=
| [[Nothing]]
   
   
|x1= <code>_ammobox [[addMagazineAmmoCargo]] ["30Rnd_65x39_caseless_mag", 2, 5];</code> |EXAMPLE1=
|x1= <code>_ammobox [[addMagazineAmmoCargo]] ["30Rnd_65x39_caseless_mag", 2, 5];</code>


| [[magazinesAmmoCargo]], [[addMagazineCargo]], [[addMagazineGlobal]], [[addMagazine]], [[addMagazines]], [[addMagazinePool]], [[addMagazineTurret]], [[clearMagazineCargo]], [[addWeaponCargo]], [[clearWeaponCargo]], [[clearWeaponCargo]], [[addWeaponCargoGlobal]], [[addBackpackCargoGlobal]], [[addItemCargo]], [[addItemCargoGlobal]] |SEEALSO=
| [[magazinesAmmoCargo]], [[addMagazineCargo]], [[addMagazineGlobal]], [[addMagazine]], [[addMagazines]], [[addMagazinePool]], [[addMagazineTurret]], [[clearMagazineCargo]], [[addWeaponCargo]], [[clearWeaponCargo]], [[clearWeaponCargo]], [[addWeaponCargoGlobal]], [[addBackpackCargoGlobal]], [[addItemCargo]], [[addItemCargoGlobal]]


}}
}}

Revision as of 00:02, 18 January 2021

Hover & click on the images for description

Description

Description:
Adds magazines with specified ammo count to the cargo space of a vehicle or a container.
Groups:
Vehicle Inventory

Syntax

Syntax:
cargospace addMagazineAmmoCargo [magazine, quantity, ammocount]
Parameters:
cargospace: Object - vehicle or container or weaponholder
[magazine, quantity, ammocount]: Array
magazine: String - magazine class name
quantity: Number - number of magazines to add
ammocount: Number - ammo count in each magazine
Return Value:
Nothing

Examples

Example 1:
_ammobox addMagazineAmmoCargo ["30Rnd_65x39_caseless_mag", 2, 5];

Additional Information

See also:
magazinesAmmoCargoaddMagazineCargoaddMagazineGlobaladdMagazineaddMagazinesaddMagazinePooladdMagazineTurretclearMagazineCargoaddWeaponCargoclearWeaponCargoclearWeaponCargoaddWeaponCargoGlobaladdBackpackCargoGlobaladdItemCargoaddItemCargoGlobal

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

Bottom Section