getCompatiblePylonMagazines: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(2 intermediate revisions by one other user not shown) | |||
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= < | |x1= <sqf> | ||
// returns array of arrays containing all compatible magazines | |||
vehicle player getCompatiblePylonMagazines 0; | |||
</sqf> | |||
|x2= < | |x2= <sqf> | ||
// returns array of compatible magazines for the 3rd pylon if it exists; otherwise returns array of arrays (see above) | |||
jet1 getCompatiblePylonMagazines 3; | |||
</sqf> | |||
|x3= < | |x3= <sqf> | ||
// returns array of compatible magazines for "pylon1" class, defined in | |||
// configFile >> "CfgVehicles" >> "B_Plane_CAS_01_dynamicLoadout_F" >> "Components" >> "TransportPylonsComponent" >> "Pylons" | |||
"B_Plane_CAS_01_dynamicLoadout_F" getCompatiblePylonMagazines "pylon1"; | |||
</sqf> | |||
|seealso= [[Arma 3: Vehicle Loadouts]] [[getPylonMagazines]] [[setAmmoOnPylon]] [[ammoOnPylon]] [[animatePylon]] [[animateBay]] [[setPylonsPriority]] [[setPylonLoadout]] | |seealso= [[Arma 3: Vehicle Loadouts]] [[getPylonMagazines]] [[setAmmoOnPylon]] [[ammoOnPylon]] [[animatePylon]] [[animateBay]] [[setPylonsPriority]] [[setPylonLoadout]] | ||
}} | }} |
Latest revision as of 20:43, 7 May 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:
- Example 2:
- // returns array of compatible magazines for the 3rd pylon if it exists; otherwise returns array of arrays (see above) jet1 getCompatiblePylonMagazines 3;
- Example 3:
- // returns array of compatible magazines for "pylon1" class, defined in // configFile >> "CfgVehicles" >> "B_Plane_CAS_01_dynamicLoadout_F" >> "Components" >> "TransportPylonsComponent" >> "Pylons" "B_Plane_CAS_01_dynamicLoadout_F" getCompatiblePylonMagazines "pylon1";
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