getCompatiblePylonMagazines: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " " to " ")
m (Text replacement - " \|(x[0-9]|p[0-9]{1,2}|descr|game[0-9]|version[0-9]|s[0-9]|exec|r[0-9]|arg|eff|branch|serverExec|gr[0-9]|mp|pr|seealso) +=" to " |$1=")
Line 11: Line 11:
|s1= vehicle '''getCompatiblePylonMagazines''' pylon
|s1= vehicle '''getCompatiblePylonMagazines''' pylon


|p1 = vehicle: [[Object]] - aircraft object
|p1= vehicle: [[Object]] - aircraft object
|p2 = pylon: [[Number]] - pylon id or [[String]] - pylon class name from <tt>TransportPylonsComponent &gt;&gt; pylons</tt> class (see Example 4). 0 or "" to return all compatible magazines from all pylons
|p2= pylon: [[Number]] - pylon id or [[String]] - pylon class name from <tt>TransportPylonsComponent &gt;&gt; pylons</tt> class (see Example 4). 0 or "" to return all compatible magazines from all pylons


|r1= [[Array]]
|r1= [[Array]]
Line 18: Line 18:
|s2= vehicleClass '''getCompatiblePylonMagazines''' pylon
|s2= vehicleClass '''getCompatiblePylonMagazines''' pylon


|p21 = vehicleClass: [[String]] - aircraft config class
|p21= vehicleClass: [[String]] - aircraft config class
|p22 = pylon: [[Number]] - pylon id or [[String]] - pylon class name from |<tt>TransportPylonsComponent &gt;&gt; pylons</tt> class (see Example 4). 0 or "" to return all compatible magazines from all pylons
|p22= pylon: [[Number]] - pylon id or [[String]] - pylon class name from |<tt>TransportPylonsComponent &gt;&gt; pylons</tt> class (see Example 4). 0 or "" to return all compatible magazines from all pylons


|r2= [[Array]]
|r2= [[Array]]

Revision as of 00:29, 11 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Vehicle Loadouts

Syntax

Syntax:
vehicle getCompatiblePylonMagazines pylon
Parameters:
vehicle: Object - aircraft object
pylon: Number - pylon id or String - pylon class name from TransportPylonsComponent >> pylons class (see Example 4). 0 or "" to return all compatible magazines from all pylons
Return Value:
Array

Alternative Syntax

Syntax:
vehicleClass getCompatiblePylonMagazines pylon
Parameters:
vehicleClass: String - aircraft config class
pylon: Number - pylon id or String - pylon class name from
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