queryMagazinePool: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "")
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"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| ofpr |Game name=
| ofpr


|1.75|Game version=
|1.75


|gr1= Weapon Pool |GROUP1=
|gr1= Weapon Pool


| Return number of magazines of type name in magazine pool (used in campaign to transfer magazines into next mission). |DESCRIPTION=
| Return number of magazines of type name in magazine pool (used in campaign to transfer magazines into next mission).


| [[Number]] <nowiki>=</nowiki> '''queryMagazinePool''' name |SYNTAX=
| [[Number]] <nowiki>=</nowiki> '''queryMagazinePool''' name


|p1= name: [[String]] |PARAMETER1=
|p1= name: [[String]]


| [[Number]] |RETURNVALUE=
| [[Number]]
|x1=<code>_num = [[queryMagazinePool]] "M16";</code>
|x1=<code>_num = [[queryMagazinePool]] "M16";</code>


| [[addMagazineGlobal]], [[addMagazine]], [[addMagazines]], [[addMagazineCargo]], [[addMagazineCargoGlobal]], [[addMagazineTurret]], [[addWeaponPool]], [[clearMagazinePool]], [[addMagazineAmmoCargo]] |SEEALSO=
| [[addMagazineGlobal]], [[addMagazine]], [[addMagazines]], [[addMagazineCargo]], [[addMagazineCargoGlobal]], [[addMagazineTurret]], [[addWeaponPool]], [[clearMagazinePool]], [[addMagazineAmmoCargo]]


}}
}}

Revision as of 02:11, 18 January 2021

Hover & click on the images for description

Description

Description:
Return number of magazines of type name in magazine pool (used in campaign to transfer magazines into next mission).
Groups:
Weapon Pool

Syntax

Syntax:
Number = queryMagazinePool name
Parameters:
name: String
Return Value:
Number

Examples

Example 1:
_num = queryMagazinePool "M16";

Additional Information

See also:
addMagazineGlobaladdMagazineaddMagazinesaddMagazineCargoaddMagazineCargoGlobaladdMagazineTurretaddWeaponPoolclearMagazinePooladdMagazineAmmoCargo

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

Bottom Section