getCompatiblePylonMagazines: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Some wiki formatting)
m (some formatting)
Line 12: Line 12:
|p1= vehicle: [[Object]] or [[String]] - aircraft object or config class
|p1= vehicle: [[Object]] or [[String]] - aircraft object or config class


|p2= pylon: [[Number]] - pylon id or [[String]] - pylon class name from <tt>TransportPylonsComponent &gt;&gt; pylons</tt> class (see {{HashLink|#Example 3}}).
|p2= pylon: [[Number]] or [[String]]
0 or "" to return all compatible magazines from all pylons
* If [[String]] - pylon class name from <tt>TransportPylonsComponent &gt;&gt; pylons</tt> class  
* If [[Number]] - pylon ID
** 0 or "" to return all compatible magazines from all pylons


|r1= [[Array]]
|r1= [[Array]]

Revision as of 12:03, 28 August 2021

Hover & click on the images for description

Description

Description:
Get array of compatible pylon magazines
Groups:
Vehicle Loadouts

Syntax

Syntax:
vehicle getCompatiblePylonMagazines pylon
Parameters:
vehicle: Object or String - aircraft object or config class
pylon: Number or String
  • If String - pylon class name from TransportPylonsComponent >> pylons class
  • If Number - pylon ID
    • 0 or "" to return all compatible magazines from all pylons
Return Value:
Array

Examples

Example 1:
vehicle player getCompatiblePylonMagazines 0; // returns array of arrays containing all compatible magazines
Example 2:
"Plane_Fighter_01_Base_F" getCompatiblePylonMagazines 3; // returns array of compatible magazines for the 3rd pylon
Example 3:
jet1 getCompatiblePylonMagazines "pylon1"; // returns array of compatible magazines for the 1st pylon

Additional Information

See also:
Arma 3: Vehicle LoadoutsgetPylonMagazinessetAmmoOnPylonammoOnPylonanimatePylonanimateBaysetPylonsPrioritysetPylonLoadout

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