getCompatiblePylonMagazines: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
(more detail about parameters and return values) |
||
Line 15: | Line 15: | ||
* If [[String]] - pylon class name from {{hl|TransportPylonsComponent >> pylons}} class | * If [[String]] - pylon class name from {{hl|TransportPylonsComponent >> pylons}} class | ||
* If [[Number]] - pylon ID | * If [[Number]] - pylon ID | ||
* | * If an invalid pylon ID or class name is provided, such as 0 or "", all compatible magazines from all pylons are returned. | ||
|r1= [[Array]] | |r1= [[Array]] of [[String]]s, or [[Array]] of [[Array]] of [[String]]s | ||
|x1= <code>[[vehicle]] [[player]] [[getCompatiblePylonMagazines]] 0; {{cc|returns array of arrays containing all compatible magazines}}</code> | |x1= <code>[[vehicle]] [[player]] [[getCompatiblePylonMagazines]] 0; {{cc|returns array of arrays containing all compatible magazines}}</code> |
Revision as of 13:35, 25 January 2022
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
- Return Value:
- Array of Strings, or Array of Array of Strings
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 Loadouts getPylonMagazines setAmmoOnPylon ammoOnPylon animatePylon animateBay setPylonsPriority setPylonLoadout
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