addMagazine array: Difference between revisions
Jump to navigation
Jump to search
(creation, please test & populate (currently @ work :))) |
m (+ categories) |
||
Line 46: | Line 46: | ||
[[Category:Scripting Commands|ADDMAGAZINE]] | [[Category:Scripting Commands|ADDMAGAZINE]] | ||
[[Category:Command_Group:_Weapons|{{uc:{{PAGENAME}}}}]] | [[Category:Command_Group:_Weapons|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | ||
[[Category:ArmA 2 OA: New Scripting Commands List|{{uc:{{PAGENAME}}}}]] | |||
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] |
Revision as of 09:34, 19 July 2012
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
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
Categories:
- Scripting Commands
- Introduced with Arma 2: Operation Arrowhead version 1.61
- Arma 2: Operation Arrowhead: New Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands: Global Effect
- Command Group: Weapons
- Scripting Commands ArmA2
- ArmA 2 OA: New Scripting Commands List
- Scripting Commands Take On Helicopters