queryMagazinePool: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "|= Game name" to "|Game name=")
(19 intermediate revisions by 11 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|QUERYMAGAZINEPOOL]]
{{Command|Comments=
[[Category:Scripting Commands OFP 1.96|QUERYMAGAZINEPOOL]]
____________________________________________________________________________________________
[[Category:Scripting Commands ArmA|QUERYMAGAZINEPOOL]]
 
| ofpr |Game name=


|1.75|Game version=
____________________________________________________________________________________________


<h2 style="color:#000066">'''queryMagazinePool ''name'''''</h2>
| Return number of magazines of type name in magazine pool (used in campaign to transfer magazines into next mission). |DESCRIPTION=
____________________________________________________________________________________________


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


'''Operand types:'''
|p1= name: [[String]] |PARAMETER1=


'''name:''' [[String]]
| [[Number]] |RETURNVALUE=
____________________________________________________________________________________________
|x1=<code>_num = [[queryMagazinePool]] "M16";</code>


'''Type of returned value:'''
| [[addMagazineGlobal]], [[addMagazine]], [[addMagazines]], [[addMagazineCargo]], [[addMagazineCargoGlobal]], [[addMagazineTurret]], [[addWeaponPool]], [[clearMagazinePool]], [[addMagazineAmmoCargo]] |SEEALSO=


[[Number]]
}}


'''Compatibility:'''
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


Added in version '''1.75'''
<!-- Note Section END -->
</dl>


'''Description:'''
<h3 style="display:none">Bottom Section</h3>


Return number of magazines of type '''name''' in magazine pool (used in campaign to transfer magazines into next mission).
[[Category:Scripting Commands|QUERYMAGAZINEPOOL]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|QUERYMAGAZINEPOOL]]
[[Category:Scripting Commands ArmA|QUERYMAGAZINEPOOL]]
[[Category:Scripting Commands ArmA2|QUERYMAGAZINEPOOL]]
[[Category:Command_Group:_Weapons|{{uc:{{PAGENAME}}}}]]
[[Category:Command Group: Weapon Pool|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Revision as of 16:43, 1 September 2019

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:
Uncategorised

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

Notes

Bottom Section