getAllPylonsInfo: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|(arg|eff|serverExec|mp|seealso)= " to "") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 8: | Line 8: | ||
|descr= Return an array with the vehicle's all pylons info. | |descr= Return an array with the vehicle's all pylons info. | ||
|s1= [[ | |s1= [[getAllPylonsInfo]] vehicle | ||
|p1= vehicle: [[Object]] | |p1= vehicle: [[Object]] | ||
Line 14: | Line 14: | ||
|r1= [[Array]] of [[Array]]s in format [Pylon index, Pylon name, Assigned turret, Magazine className, Magazine ammo count, [[currentMagazineDetail|Magazine detail]]<nowiki>]</nowiki> | |r1= [[Array]] of [[Array]]s in format [Pylon index, Pylon name, Assigned turret, Magazine className, Magazine ammo count, [[currentMagazineDetail|Magazine detail]]<nowiki>]</nowiki> | ||
|x1= < | |x1= <sqf> | ||
getAllPylonsInfo vehicle player; | |||
/* | |||
Executed on an Mi-48 Kajman: | Executed on an Mi-48 Kajman: | ||
[ | [ | ||
Line 23: | Line 24: | ||
[4,"PylonRight1",[0],"PylonRack_4Rnd_LG_scalpel",4,"0:10000650"] | [4,"PylonRight1",[0],"PylonRack_4Rnd_LG_scalpel",4,"0:10000650"] | ||
] | ] | ||
*/ | |||
</sqf> | |||
|seealso= [[ammoOnPylon]] [[getCompatiblePylonMagazines]] [[getPylonMagazines]] [[setAmmoOnPylon]] [[setPylonLoadout]] [[setPylonsPriority]] | |seealso= [[ammoOnPylon]] [[getCompatiblePylonMagazines]] [[getPylonMagazines]] [[setAmmoOnPylon]] [[setPylonLoadout]] [[setPylonsPriority]] | ||
}} | }} |
Latest revision as of 13:50, 5 May 2022
Description
- Description:
- Return an array with the vehicle's all pylons info.
- 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]
Examples
- Example 1:
- getAllPylonsInfo vehicle player; /* Executed on an Mi-48 Kajman: [ [1,"PylonLeft1",[0],"PylonRack_4Rnd_LG_scalpel",4,"0:10000646"], [2,"PylonLeft2",[0],"PylonRack_19Rnd_Rocket_Skyfire",19,"0:10000648"], [3,"PylonRight2",[0],"PylonRack_19Rnd_Rocket_Skyfire",19,"0:10000649"], [4,"PylonRight1",[0],"PylonRack_4Rnd_LG_scalpel",4,"0:10000650"] ] */
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 or on the Forums.
Only post proven facts here! Add Note