addMagazine array: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 29: Line 29:
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[addMagazine]], [[removeMagazine]], [[removeMagazines]], [[addWeapon]] |= See also
| [[addMagazine]], [[removeMagazine]], [[removeMagazines]], [[addWeapon]], [[addMagazineCargo]], [[addMagazineCargoGlobal]], [[addMagazinePool]], [[addMagazineTurret]] |= See also


}}
}}

Revision as of 11:55, 26 September 2012

Hover & click on the images for description

Description

Description:
Adds a magazine to a person with said ammunition count. Note: When you add a new weapon via scripting commands as well as the magazines for it, the addMagazine command has to be given before the addWeapon command, otherwise the weapon won't be loaded.
Groups:
Uncategorised

Syntax

Syntax:
unitName addMagazine [magazineName, ammoCount]
Parameters:
unitName: Object - person to add the magazine to
magazineName: String - magazine name. See the topic Category:Weapons for reference about possible values.
ammoCount: String - number of bullets in the magazine
Return Value:
Nothing

Examples

Example 1:
player addMagazine ["30Rnd_556x45_STANAG", 15];

Additional Information

See also:
addMagazineremoveMagazineremoveMagazinesaddWeaponaddMagazineCargoaddMagazineCargoGlobaladdMagazinePooladdMagazineTurret

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

Notes

Bottom Section