getCompatiblePylonMagazines: Difference between revisions
Jump to navigation
Jump to search
(more detail about parameters and return values) |
(show in example where pylon classes are defined in config) |
||
Line 21: | Line 21: | ||
|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> | ||
|x2= <code> | |x2= <code>jet1 [[getCompatiblePylonMagazines]] 3; {{cc|returns array of compatible magazines for the 3rd pylon if it exists; otherwise returns array of arrays (see above)}}</code> | ||
|x3= <code> | |x3= <code>"B_Plane_CAS_01_dynamicLoadout_F" [[getCompatiblePylonMagazines]] "pylon1"; {{cc|returns array of compatible magazines for "pylon1" class, defined in: configFile >> "CfgVehicles" >> "B_Plane_CAS_01_dynamicLoadout_F" >> "Components" >> "TransportPylonsComponent" >> "Pylons"}}</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 13:40, 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:
jet1 getCompatiblePylonMagazines 3; // returns array of compatible magazines for the 3rd pylon if it exists; otherwise returns array of arrays (see above)
- Example 3:
"B_Plane_CAS_01_dynamicLoadout_F" getCompatiblePylonMagazines "pylon1"; // returns array of compatible magazines for "pylon1" class, defined in: configFile >> "CfgVehicles" >> "B_Plane_CAS_01_dynamicLoadout_F" >> "Components" >> "TransportPylonsComponent" >> "Pylons"
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