addMagazineAmmoCargo: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) 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 | {{Command | ||
| arma3 | | arma3 | ||
|1.32 | |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 | |gr1= Vehicle Inventory | ||
| Adds magazines with specified ammo count to the cargo space of a vehicle or a container. | | Adds magazines with specified ammo count to the cargo space of a vehicle or a container. | ||
| cargospace [[addMagazineAmmoCargo]] [magazine, quantity, ammocount] | | cargospace [[addMagazineAmmoCargo]] [magazine, quantity, ammocount] | ||
|p1= cargospace: [[Object]] - vehicle or container or weaponholder | |p1= cargospace: [[Object]] - vehicle or container or weaponholder | ||
|p2= [magazine, quantity, ammocount]: [[Array]] | |p2= [magazine, quantity, ammocount]: [[Array]] | ||
|p3= magazine: [[String]] - magazine class name | |p3= magazine: [[String]] - magazine class name | ||
|p4= quantity: [[Number]] - number of magazines to add | |p4= quantity: [[Number]] - number of magazines to add | ||
|p5= ammocount: [[Number]] - ammo count in each magazine | |p5= ammocount: [[Number]] - ammo count in each magazine | ||
| [[Nothing]] | | [[Nothing]] | ||
|x1= <code>_ammobox [[addMagazineAmmoCargo]] ["30Rnd_65x39_caseless_mag", 2, 5];</code> | |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]] | | [[magazinesAmmoCargo]], [[addMagazineCargo]], [[addMagazineGlobal]], [[addMagazine]], [[addMagazines]], [[addMagazinePool]], [[addMagazineTurret]], [[clearMagazineCargo]], [[addWeaponCargo]], [[clearWeaponCargo]], [[clearWeaponCargo]], [[addWeaponCargoGlobal]], [[addBackpackCargoGlobal]], [[addItemCargo]], [[addItemCargoGlobal]] | ||
}} | }} |
Revision as of 00:02, 18 January 2021
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