getAllPylonsInfo: Difference between revisions

From Bohemia Interactive Community
(Add [relPos, relDir, relUp])
(podObject return and 2.22 bugfix)
 
Line 6: Line 6:
|gr1= Vehicle Loadouts
|gr1= Vehicle Loadouts


|descr= Return an array with the vehicle's all pylons info.
|descr= Return an array with the vehicle's all pylons info.<br>
Note that the podObject can only be used for very few operations. It is not a real Entity.<br>
Note until {{GVI|arma3|2.22|size= 0.75}} the relativeDir orientation was inverted.


|s1= [[getAllPylonsInfo]] vehicle
|s1= [[getAllPylonsInfo]] vehicle
Line 12: Line 14:
|p1= vehicle: [[Object]]
|p1= vehicle: [[Object]]


|r1= [[Array]] of [[Array]]s in format [Pylon index, Pylon name, Assigned turret, Magazine className, Magazine ammo count, [[currentMagazineDetail|Magazine detail]], {{GVI|arma3|2.20|size= 0.75}} [relativePos, relativeDir, relativeUp]<nowiki/>]
|r1= [[Array]] of [[Array]]s in format [Pylon index, Pylon name, Assigned turret, Magazine className, Magazine ammo count, [[currentMagazineDetail|Magazine detail]], {{GVI|arma3|2.20|size= 0.75}} [relativePos, relativeDir, relativeUp]<nowiki/>, {{GVI|arma3|2.22|size= 0.75}} podObject]


|x1= <sqf>
|x1= <sqf>
Line 19: Line 21:
Executed on an Mi-48 Kajman:
Executed on an Mi-48 Kajman:
[
[
[1, "PylonLeft1", [0], "PylonRack_4Rnd_LG_scalpel", 4, "0:10000048", [[2.50423, -0.214772, -1.37952], [-0, -0.997732, -0.0673187], [-0, -0.0673187, 0.997732]]],  
[1, "PylonLeft1", [0], "PylonRack_4Rnd_LG_scalpel", 4, "0:10000048", [[2.50423, -0.214772, -1.37952], [0, 0.997732, 0.0673187], [-0, -0.0673187, 0.997732]], NOID pylonpod_4x_missile_lg_scalpel_f.p3d],
[2, "PylonLeft2", [0], "PylonRack_19Rnd_Rocket_Skyfire", 19, "0:10000050", [[1.8108, -0.15553, -1.32298], [-0, -0.997732, -0.0673187], [-0, -0.0673187, 0.997732]]],  
[2, "PylonLeft2", [0], "PylonRack_19Rnd_Rocket_Skyfire", 19, "0:10000050", [[1.8108, -0.15553, -1.32298], [0, 0.997732, 0.0673187], [-0, -0.0673187, 0.997732]], NOID pylonpod_rocket_skyfire_f.p3d],
[3, "PylonRight2", [0], "PylonRack_19Rnd_Rocket_Skyfire", 19, "0:10000051", [[-1.81321, -0.15553, -1.32298], [-0, -0.997732, -0.0673187], [-0, -0.0673187, 0.997732]]],  
[3, "PylonRight2", [0], "PylonRack_19Rnd_Rocket_Skyfire", 19, "0:10000051", [[-1.81321, -0.15553, -1.32298], [0, 0.997732, 0.0673187], [-0, -0.0673187, 0.997732]], NOID pylonpod_rocket_skyfire_f.p3d],
[4, "PylonRight1", [0], "PylonRack_4Rnd_LG_scalpel", 4, "0:10000052", [[-2.50664, -0.214772, -1.37952], [-0, -0.997732, -0.0673187], [-0, -0.0673187, 0.997732]]]
[4, "PylonRight1", [0], "PylonRack_4Rnd_LG_scalpel", 4, "0:10000052", [[-2.50664, -0.214772, -1.37952], [0, 0.997732, 0.0673187], [-0, -0.0673187, 0.997732]], NOID pylonpod_4x_missile_lg_scalpel_f.p3d]
]
]
*/
*/

Latest revision as of 13:43, 3 March 2026

Hover & click on the images for description

Description

Description:
Return an array with the vehicle's all pylons info.
Note that the podObject can only be used for very few operations. It is not a real Entity.
Note until Arma 3 logo black.png 2.22 the relativeDir orientation was inverted.
Groups:
Vehicle Loadouts

Syntax

Syntax:
getAllPylonsInfo vehicle
Parameters:
vehicle: Object
Return Value:
Array of Arrays in format [Pylon index, Pylon name, Assigned turret, Magazine className, Magazine ammo count, Magazine detail, Arma 3 logo black.png 2.20 [relativePos, relativeDir, relativeUp], Arma 3 logo black.png 2.22 podObject]

Examples

Example 1:
getAllPylonsInfo vehicle player; /* Executed on an Mi-48 Kajman: [ [1, "PylonLeft1", [0], "PylonRack_4Rnd_LG_scalpel", 4, "0:10000048", [[2.50423, -0.214772, -1.37952], [0, 0.997732, 0.0673187], [-0, -0.0673187, 0.997732]], NOID pylonpod_4x_missile_lg_scalpel_f.p3d], [2, "PylonLeft2", [0], "PylonRack_19Rnd_Rocket_Skyfire", 19, "0:10000050", [[1.8108, -0.15553, -1.32298], [0, 0.997732, 0.0673187], [-0, -0.0673187, 0.997732]], NOID pylonpod_rocket_skyfire_f.p3d], [3, "PylonRight2", [0], "PylonRack_19Rnd_Rocket_Skyfire", 19, "0:10000051", [[-1.81321, -0.15553, -1.32298], [0, 0.997732, 0.0673187], [-0, -0.0673187, 0.997732]], NOID pylonpod_rocket_skyfire_f.p3d], [4, "PylonRight1", [0], "PylonRack_4Rnd_LG_scalpel", 4, "0:10000052", [[-2.50664, -0.214772, -1.37952], [0, 0.997732, 0.0673187], [-0, -0.0673187, 0.997732]], NOID pylonpod_4x_missile_lg_scalpel_f.p3d] ] */

Additional Information

See also:
ammoOnPylon getCompatiblePylonMagazines getPylonMagazines setAmmoOnPylon setPylonLoadout setPylonsPriority

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note