addMagazineAmmoCargo: Difference between revisions
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 |= | |p1= cargospace: [[Object]] - vehicle or container or weaponholder |PARAMETER1= | ||
|p2= [magazine, quantity, ammocount]: [[Array]] |= | |p2= [magazine, quantity, ammocount]: [[Array]] |PARAMETER2= | ||
|p3= magazine: [[String]] - magazine class name |= | |p3= magazine: [[String]] - magazine class name |PARAMETER3= | ||
|p4= quantity: [[Number]] - number of magazines to add |= | |p4= quantity: [[Number]] - number of magazines to add |PARAMETER4= | ||
|p5= ammocount: [[Number]] - ammo count in each magazine|= | |p5= ammocount: [[Number]] - ammo count in each magazine|PARAMETER5= | ||
| [[Nothing]] |RETURNVALUE= | | [[Nothing]] |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>_ammobox [[addMagazineAmmoCargo]] ["30Rnd_65x39_caseless_mag", 2, 5];</code> |= | |x1= <code>_ammobox [[addMagazineAmmoCargo]] ["30Rnd_65x39_caseless_mag", 2, 5];</code> |EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 14:27, 7 April 2019
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