getPylonMagazines: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\{\{GameCategory\|(arma[0123])\|[ _]?New[ _]Scripting[ _]Commands[ _]List\}\}" to "{{GameCategory|$1|New Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma3 |Game name=
| arma3 |Game name=
Line 8: Line 7:
|gr1= Vehicle Loadouts |GROUP1=
|gr1= Vehicle Loadouts |GROUP1=


____________________________________________________________________________________________


|Return array of magazines on pylons |DESCRIPTION=
|Return array of magazines on pylons |DESCRIPTION=
____________________________________________________________________________________________


| '''getPylonMagazines''' vehicle |SYNTAX=
| '''getPylonMagazines''' vehicle |SYNTAX=
Line 19: Line 16:
| [[Array]] of [[String]]s (magazine classnames) |RETURNVALUE=
| [[Array]] of [[String]]s (magazine classnames) |RETURNVALUE=


____________________________________________________________________________________________


|x1= <code>[[getPylonMagazines]] ([[vehicle]] [[player]]) </code> |EXAMPLE1=
|x1= <code>[[getPylonMagazines]] ([[vehicle]] [[player]]) </code> |EXAMPLE1=
____________________________________________________________________________________________


|  [[Arma 3 Vehicle Loadouts]],[[getCompatiblePylonMagazines]],[[setAmmoOnPylon]],[[ammoOnPylon]],[[animatePylon]],[[animateBay]],[[setPylonsPriority]],[[setPylonLoadout]],[[magazinesAllTurrets]] |SEEALSO=
|  [[Arma 3 Vehicle Loadouts]],[[getCompatiblePylonMagazines]],[[setAmmoOnPylon]],[[ammoOnPylon]],[[animatePylon]],[[animateBay]],[[setPylonsPriority]],[[setPylonLoadout]],[[magazinesAllTurrets]] |SEEALSO=

Revision as of 01:41, 17 January 2021

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 classnames)

Examples

Example 1:
getPylonMagazines (vehicle player)

Additional Information

See also:
Arma 3 Vehicle LoadoutsgetCompatiblePylonMagazinessetAmmoOnPylonammoOnPylonanimatePylonanimateBaysetPylonsPrioritysetPylonLoadoutmagazinesAllTurrets

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

Posted on May 12, 2017 - 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.