addMagazineAmmoCargo: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>") |
||
Line 26: | Line 26: | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>_ammobox addMagazineAmmoCargo ["30Rnd_65x39_caseless_mag", 2, 5];</sqf> | ||
|seealso= [[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 10:21, 13 May 2022
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:
- magazinesAmmoCargo addMagazineCargo addMagazineGlobal addMagazine addMagazines addMagazinePool addMagazineTurret clearMagazineCargo addWeaponCargo clearWeaponCargo clearWeaponCargo addWeaponCargoGlobal addBackpackCargoGlobal addItemCargo addItemCargoGlobal
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