getPylonMagazines: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (Text replacement - "Samatra" to "Sa-Matra")
 
(44 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Command|=
{{RV|type=command
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|version1= 1.70


|1.70|Game Version=
|gr1= Vehicle Loadouts


____________________________________________________________________________________________
|descr=Return array of magazines on pylons.


|Return array of magazines on pylons |DESCRIPTION=
|s1= [[getPylonMagazines]]  vehicle
____________________________________________________________________________________________


| '''getPylonMagazines''' vehicle |SYNTAX=
|p1= vehicle: [[Object]]


|p1= vehicle: [[Object]] |PARAMETER1=
|r1= [[Array]] of [[String]]s - magazine names


| [[Array]] of [[String]]s (magazine classnames) |RETURNVALUE=
|x1= <sqf>getPylonMagazines vehicle player;</sqf>
 
____________________________________________________________________________________________
 
|x1= <code>[[getPylonMagazines]] ([[vehicle]] [[player]]) </code> |EXAMPLE1=
____________________________________________________________________________________________
 
|  [[Arma 3 Vehicle Loadouts]],[[getCompatiblePylonMagazines]],[[setAmmoOnPylon]],[[ammoOnPylon]],[[animatePylon]],[[animateBay]],[[setPylonsPriority]],[[setPylonLoadout]] |SEEALSO=


|seealso= [[Arma 3: Vehicle Loadouts]] [[getCompatiblePylonMagazines]] [[setAmmoOnPylon]] [[ammoOnPylon]] [[animatePylon]] [[animateBay]] [[setPylonsPriority]] [[setPylonLoadout]] [[magazinesAllTurrets]]
}}
}}


<h3 style="display:none">Notes</h3>
<dl class="command_description">
<dl class="command_description">
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Vehicle Loadouts|{{uc:{{PAGENAME}}}}]]


<!-- CONTINUE Notes -->
<dt></dt>
<dl class="command_description">
<dd class="notedate">Posted on 2017-05-12 - 19:58 (UTC)</dd>
<dd class="notedate">Posted on May 12, 2017 - 19:58 (UTC)</dd>
<dt class="note">[[User:AgentRev|AgentRev]]</dt>
<dt class="note">[[User:AgentRevolution|AgentRev]]</dt>
<dd class="note">
<dd class="note">
The indexes of the returned array's elements are relative to the pylon indexes, such that element 0 is pylon 1, element 1 is pylon 2, etc.
The indexes of the returned array's elements are relative to the pylon indexes, such that element 0 is pylon 1, element 1 is pylon 2, etc.
</dd>
</dd>
</dl>
</dl>
<!-- DISCONTINUE Notes -->
 
{{Note
|user= Sa-Matra
|timestamp= 20240504051358
|text= Just like [[getAllPylonsInfo]] this command returns last pylon state which can include non-existent magazine that was deleted with [[removeMagazineTurret]]
}}

Latest revision as of 20:58, 4 July 2024

Hover & click on the images for description

Description

Description:
Return array of magazines on pylons.
Groups:
Vehicle Loadouts

Syntax

Syntax:
getPylonMagazines vehicle
Parameters:
vehicle: Object
Return Value:
Array of Strings - magazine names

Examples

Example 1:
getPylonMagazines vehicle player;

Additional Information

See also:
Arma 3: Vehicle Loadouts getCompatiblePylonMagazines setAmmoOnPylon ammoOnPylon animatePylon animateBay setPylonsPriority setPylonLoadout magazinesAllTurrets

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
Posted on 2017-05-12 - 19:58 (UTC)
AgentRev
The indexes of the returned array's elements are relative to the pylon indexes, such that element 0 is pylon 1, element 1 is pylon 2, etc.
Sa-Matra - c
Posted on May 04, 2024 - 05:13 (UTC)
Just like getAllPylonsInfo this command returns last pylon state which can include non-existent magazine that was deleted with removeMagazineTurret