addMagazineAmmoCargo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Some wiki formatting)
 
(40 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma3|Game name=
|game1= arma3
|version1= 1.32


|1.32|Game version=
|arg= global


|arg= global |Multiplayer Arguments=
|eff= global


|eff= global|Multiplayer Effects=
|gr1= Vehicle Inventory


|gr1= Vehicle Inventory |GROUP1=
|descr= Adds magazines with specified ammo count to the cargo space of a vehicle or a container.


|gr2= Weapons |GROUP2=
|s1= cargospace [[addMagazineAmmoCargo]] [magazine, quantity, ammocount]
____________________________________________________________________________________________


| Adds magazines with specified ammo count to the cargo space of a vehicle or a container.|DESCRIPTION=
|p1= cargospace: [[Object]] - vehicle or container or weaponholder
____________________________________________________________________________________________


| cargospace [[addMagazineAmmoCargo]] [magazine, quantity, ammocount] |SYNTAX=
|p2= magazine: [[String]] - magazine class name


|p1= cargospace: [[Object]] - vehicle or container or weaponholder |PARAMETER1=
|p3= quantity: [[Number]] - number of magazines to add. {{GVI|arma3|2.14|size= 0.75}} a negative value remove magazines


|p2= [magazine, quantity, ammocount]: [[Array]] |PARAMETER2=
|p4= ammocount: [[Number]] - ammo count in each magazine


|p3= magazine: [[String]] - magazine class name |PARAMETER3=
|r1= [[Nothing]]


|p4= quantity: [[Number]] - number of magazines to add |PARAMETER4=
|x1= <sqf>_ammobox addMagazineAmmoCargo ["30Rnd_65x39_caseless_mag", 2, 5];</sqf>
 
|p5= ammocount: [[Number]] - ammo count in each magazine|PARAMETER5=
 
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
 
|x1= <code>_ammobox [[addMagazineAmmoCargo]] ["30Rnd_65x39_caseless_mag", 2, 5];</code> |EXAMPLE1=
____________________________________________________________________________________________
 
| [[magazinesAmmoCargo]], [[addMagazineCargo]], [[addMagazineGlobal]], [[addMagazine]], [[addMagazines]], [[addMagazinePool]], [[addMagazineTurret]], [[clearMagazineCargo]], [[addWeaponCargo]], [[clearWeaponCargo]], [[clearWeaponCargo]], [[addWeaponCargoGlobal]], [[addBackpackCargoGlobal]], [[addItemCargo]], [[addItemCargoGlobal]] |SEEALSO=


|seealso= [[magazinesAmmoCargo]] [[addMagazineCargo]] [[addMagazineGlobal]] [[addMagazine]] [[addMagazines]] [[addMagazinePool]] [[addMagazineTurret]] [[clearMagazineCargo]] [[addWeaponCargo]] [[clearWeaponCargo]] [[clearWeaponCargo]] [[addWeaponCargoGlobal]] [[addBackpackCargoGlobal]] [[addItemCargo]] [[addItemCargoGlobal]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]

Latest revision as of 20:04, 1 July 2024

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:
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. Arma 3 logo black.png2.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