addMagazineAmmoCargo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (template:command argument fix)
Line 16: Line 16:
| cargospace [[addMagazineAmmoCargo]] [magazine, quantity, ammocount] |SYNTAX=
| cargospace [[addMagazineAmmoCargo]] [magazine, quantity, ammocount] |SYNTAX=


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


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


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


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


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


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



Revision as of 14:27, 7 April 2019

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:
Uncategorised

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:
addMagazineCargoaddMagazineGlobaladdMagazineaddMagazinesaddMagazinePooladdMagazineTurretclearMagazineCargoaddWeaponCargoclearWeaponCargoclearWeaponCargoaddWeaponCargoGlobaladdBackpackCargoGlobaladdItemCargoaddItemCargoGlobal

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