addMagazineAmmoCargo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]3(\|.*)]]" to "{{GameCategory|arma3|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma3|Game name=
| arma3|Game name=
Line 11: Line 10:


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


| 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.|DESCRIPTION=
____________________________________________________________________________________________


| cargospace [[addMagazineAmmoCargo]] [magazine, quantity, ammocount] |SYNTAX=
| cargospace [[addMagazineAmmoCargo]] [magazine, quantity, ammocount] |SYNTAX=
Line 29: Line 26:


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


| [[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]] |SEEALSO=

Revision as of 00:11, 17 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