addMagazineAmmoCargo: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *(arg|eff|mp|serverExec|gr[0-9]) *= *(.*) * *\|([^=]{12})" to "|$1=$2 |descr=$3") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(21 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| arma3 | |game1= arma3 | ||
|version1= 1.32 | |||
|1.32 | |||
|arg= global | |arg= global | ||
Line 13: | Line 12: | ||
|descr= Adds magazines with specified ammo count to the cargo space of a vehicle or a container. | |descr= Adds magazines with specified ammo count to the cargo space of a vehicle or a container. | ||
|s1= | |s1= cargospace [[addMagazineAmmoCargo]] [magazine, quantity, ammocount] | ||
|p1= cargospace: [[Object]] - vehicle or container or weaponholder | |p1= cargospace: [[Object]] - vehicle or container or weaponholder | ||
|p2 | |p2= magazine: [[String]] - magazine class name | ||
| | |p3= quantity: [[Number]] - number of magazines to add. {{GVI|arma3|2.14|size= 0.75}} a negative value remove magazines | ||
| | |p4= ammocount: [[Number]] - ammo count in each magazine | ||
|r1=[[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>_ammobox addMagazineAmmoCargo ["30Rnd_65x39_caseless_mag", 2, 5];</sqf> | ||
|seealso= [[magazinesAmmoCargo]] | |seealso= [[magazinesAmmoCargo]] [[addMagazineCargo]] [[addMagazineGlobal]] [[addMagazine]] [[addMagazines]] [[addMagazinePool]] [[addMagazineTurret]] [[clearMagazineCargo]] [[addWeaponCargo]] [[clearWeaponCargo]] [[clearWeaponCargo]] [[addWeaponCargoGlobal]] [[addBackpackCargoGlobal]] [[addItemCargo]] [[addItemCargoGlobal]] | ||
}} | }} |
Latest revision as of 20:04, 1 July 2024
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: String - magazine class name
- quantity: Number - number of magazines to add. 2.14 a negative value remove magazines
- 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