getAllPylonsInfo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Article creation)
 
m (Some wiki formatting)
 
(17 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command
{{RV|type=command


|game1= arma3dev |Game name=
|game1= arma3
|version1= 2.02


|version= 2.01 |Game version=
|gr1= Vehicle Loadouts


|arg=  |Multiplayer Arguments ("local" or "global")=
|descr= Return an array with the vehicle's all pylons info.


|eff=  |Multiplayer Effects ("local" or "global")=
|s1= [[getAllPylonsInfo]] vehicle


|serverExec=  |Multiplayer Execution ("server" or empty)=
|p1= vehicle: [[Object]]


|gr1= Vehicle Loadouts |GROUP1=
|r1= [[Array]] of [[Array]]s in format [Pylon index, Pylon name, Assigned turret, Magazine className, Magazine ammo count, [[currentMagazineDetail|Magazine detail]]<nowiki>]</nowiki>
____________________________________________________________________________________________


|descr= Return an array with the vehicle's all pylons info. |Description=
|x1= <sqf>
 
getAllPylonsInfo vehicle player;
|mp= |Multiplayer Behaviour=
/*
 
|pr= |Problems=
____________________________________________________________________________________________
 
|s1= [[{{PAGENAMEE}}]] vehicle |Syntax=
 
|p1= vehicle: [[Object]] |Parameter 1=
 
|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]];
{{codecomment|/*
Executed on an Mi-48 Kajman:
Executed on an Mi-48 Kajman:
[
[
Line 37: Line 24:
[4,"PylonRight1",[0],"PylonRack_4Rnd_LG_scalpel",4,"0:10000650"]
[4,"PylonRight1",[0],"PylonRack_4Rnd_LG_scalpel",4,"0:10000650"]
]
]
<nowiki>*</nowiki>/}}</code> |Example 1=
*/
____________________________________________________________________________________________
</sqf>


|seealso= [[ammoOnPylon]] [[getCompatiblePylonMagazines]] [[getPylonMagazines]] [[setAmmoOnPylon]] [[setPylonLoadout]] [[setPylonsPriority]] |See Also=
|seealso= [[ammoOnPylon]] [[getCompatiblePylonMagazines]] [[getPylonMagazines]] [[setAmmoOnPylon]] [[setPylonLoadout]] [[setPylonsPriority]]
}}
}}
<dl class="command_description">
<!-- BEGIN Note Section -->
<!-- For example:
<dd class="notedate">Posted on Month Day, Year - Time (UTC)</dd>
<dt class="note">[[User:User Name|User Name]]</dt>
<dd class="note">This is an example note. It is true and verifiable, and contains a little code snippet.
<code>[[if]] ([[_this]] == anExample) [[then]] { [[hint]] "Leave it here for others to read"; };</code></dd>
-->
<!-- END Note Section -->
</dl>
<h3 style="display:none">Bottom Section</h3>
<!-- Non-automatic appropriate categories go here, e.g
[[Category:Scripting Commands {{arma3}}|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
-->

Latest revision as of 13:50, 5 May 2022

Hover & click on the images for description

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