getCompatiblePylonMagazines: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *arma3 * \| +([0-2]\.[0-9]{2}) * " to "|game1= arma3 |version1= $1 ") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 8: | Line 8: | ||
|descr= Get array of compatible pylon magazines | |descr= Get array of compatible pylon magazines | ||
|s1= vehicle [[getCompatiblePylonMagazines]] | |s1= vehicle [[getCompatiblePylonMagazines]] pylon | ||
|p1= vehicle: [[Object]] - aircraft object | |p1= vehicle: [[Object]] or [[String]] - aircraft object or config class | ||
|p2= pylon: [[Number]] - pylon id or [[String]] - pylon class name from <tt>TransportPylonsComponent >> pylons</tt> class (see Example | |||
|p2= pylon: [[Number]] - pylon id or [[String]] - pylon class name from <tt>TransportPylonsComponent >> pylons</tt> class (see {{HashLink|#Example 3}}). | |||
0 or "" to return all compatible magazines from all pylons | |||
|r1= [[Array]] | |r1= [[Array]] | ||
| | |x1= <code>[[vehicle]] [[player]] [[getCompatiblePylonMagazines]] 0; {{cc|returns array of arrays containing all compatible magazines}}</code> | ||
| | |x2= <code>"Plane_Fighter_01_Base_F" [[getCompatiblePylonMagazines]] 3; {{cc|returns array of compatible magazines for the 3rd pylon}}</code> | ||
| | |||
|x3= <code>jet1 [[getCompatiblePylonMagazines]] "pylon1"; {{cc|returns array of compatible magazines for the 1st pylon}}</code> | |x3= <code>jet1 [[getCompatiblePylonMagazines]] "pylon1"; {{cc|returns array of compatible magazines for the 1st pylon}}</code> | ||
|seealso= [[Arma 3: Vehicle Loadouts]],[[getPylonMagazines]],[[setAmmoOnPylon]],[[ammoOnPylon]],[[animatePylon]],[[animateBay]],[[setPylonsPriority]],[[setPylonLoadout]] | |seealso= [[Arma 3: Vehicle Loadouts]],[[getPylonMagazines]],[[setAmmoOnPylon]],[[ammoOnPylon]],[[animatePylon]],[[animateBay]],[[setPylonsPriority]],[[setPylonLoadout]] | ||
}} | }} |
Revision as of 12:28, 14 June 2021
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 - pylon id or String - pylon class name from TransportPylonsComponent >> pylons class (see Example 3). 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