queryMagazinePool: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "[[Category:Scripting_Commands_Take_On_Helicopters" to "[[Category:Scripting Commands Take On Helicopters")
(26 intermediate revisions by 12 users not shown)
Line 1: Line 1:
back to [[Scripting_Reference#Q|COMREF]]
{{Command|Comments=
____________________________________________________________________________________________


<h2 style="color:#000066">'''queryMagazinePool ''name'''''</h2>
| ofpr |Game name=


|1.75|Game version=
____________________________________________________________________________________________


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


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


'''Type of returned value:'''
|p1= name: [[String]] |PARAMETER1=


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


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


Added in version '''1.75'''
}}


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


Return number of magazines of type '''name''' in magazine pool (used in campaign to transfer magazines into next mission).
<!-- Note Section END -->
</dl>
 
<h3 style="display:none">Bottom Section</h3>
 
[[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 Arma 2|QUERYMAGAZINEPOOL]]
[[Category:Command_Group:_Weapons|{{uc:{{PAGENAME}}}}]]
[[Category:Command Group: Weapon Pool|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]

Revision as of 17:30, 6 April 2020

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