getAllPylonsInfo: Difference between revisions
Jump to navigation
Jump to search
(Article creation) |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 12: | Line 12: | ||
|gr1= Vehicle Loadouts |GROUP1= | |gr1= Vehicle Loadouts |GROUP1= | ||
|descr= Return an array with the vehicle's all pylons info. |Description= | |descr= Return an array with the vehicle's all pylons info. |Description= | ||
Line 19: | Line 18: | ||
|pr= |Problems= | |pr= |Problems= | ||
|s1= [[{{PAGENAMEE}}]] vehicle |Syntax= | |s1= [[{{PAGENAMEE}}]] vehicle |Syntax= | ||
Line 26: | Line 24: | ||
|r1= [[Array]] of [[Array]]s in format [Pylon index, Pylon name, Assigned turret, Magazine className, Magazine ammo count, [[currentMagazineDetail|Magazine detail]]<nowiki>]</nowiki> |Return Value= | |r1= [[Array]] of [[Array]]s in format [Pylon index, Pylon name, Assigned turret, Magazine className, Magazine ammo count, [[currentMagazineDetail|Magazine detail]]<nowiki>]</nowiki> |Return Value= | ||
|x1= <code>[[getAllPylonsInfo]] [[vehicle]] [[player]]; | |x1= <code>[[getAllPylonsInfo]] [[vehicle]] [[player]]; | ||
Line 38: | Line 35: | ||
] | ] | ||
<nowiki>*</nowiki>/}}</code> |Example 1= | <nowiki>*</nowiki>/}}</code> |Example 1= | ||
|seealso= [[ammoOnPylon]] [[getCompatiblePylonMagazines]] [[getPylonMagazines]] [[setAmmoOnPylon]] [[setPylonLoadout]] [[setPylonsPriority]] |See Also= | |seealso= [[ammoOnPylon]] [[getCompatiblePylonMagazines]] [[getPylonMagazines]] [[setAmmoOnPylon]] [[setPylonLoadout]] [[setPylonsPriority]] |See Also= |
Revision as of 01:10, 17 January 2021
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
[[Category:Introduced with arma3dev version ]][[ Category: arma3dev: New Scripting Commands | GETALLPYLONSINFO]][[ Category: arma3dev: Scripting Commands | GETALLPYLONSINFO]]