getCompatiblePylonMagazines: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "|gr1= Vehicle Loadouts" to "|gr1= Pylons") |
m (Text replacement - "|gr1= Pylons" to "|gr1= Vehicle Loadouts") |
||
Line 5: | Line 5: | ||
| 1.72 | | 1.72 | ||
|gr1= | |gr1= Vehicle Loadouts | ||
| Get array of compatible pylon magazines | | Get array of compatible pylon magazines |
Revision as of 09:28, 4 May 2021
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