squadParams: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma3 |Game name=
| arma3


|1.18|Game version=
|1.18


|arg= global|Multiplayer Arguments=
|arg= global


|gr1= Object Manipulation |GROUP1=
|gr1= Object Manipulation


|gr2= System |GROUP2=
|gr2= System




| Returns data about squad of given unit loaded from squad.xml.<br>
| Returns data about squad of given unit loaded from squad.xml.<br>
All items in returned array are [[String]]. |DESCRIPTION=
All items in returned array are [[String]].


| '''squadParams''' unit |SYNTAX=
| '''squadParams''' unit


|p1= unit: [[Object]] |PARAMETER1=
|p1= unit: [[Object]]


| [[Array]] - <nowiki>[[</nowiki>squadNick,squadName,squadEmail,squadWeb,squadPicture,squadTitle],[memberId,memberNick,memberName,memberEmail,memberIcq,memberRemark<nowiki>]]</nowiki>|RETURNVALUE=
| [[Array]] - <nowiki>[[</nowiki>squadNick,squadName,squadEmail,squadWeb,squadPicture,squadTitle],[memberId,memberNick,memberName,memberEmail,memberIcq,memberRemark<nowiki>]]</nowiki>
   
   
|x1= <code>_info = [[squadParams]] [[player]];</code> |EXAMPLE1=
|x1= <code>_info = [[squadParams]] [[player]];</code>


| [[squad.xml]] |SEEALSO=
| [[squad.xml]]


}}
}}

Revision as of 12:26, 18 January 2021

Hover & click on the images for description

Description

Description:
Returns data about squad of given unit loaded from squad.xml.
All items in returned array are String.
Groups:
Object ManipulationSystem

Syntax

Syntax:
squadParams unit
Parameters:
unit: Object
Return Value:
Array - [[squadNick,squadName,squadEmail,squadWeb,squadPicture,squadTitle],[memberId,memberNick,memberName,memberEmail,memberIcq,memberRemark]]

Examples

Example 1:
_info = squadParams player;

Additional Information

See also:
squad.xml

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
Posted on July 19, 2015 - 21:43 (UTC)
Waffle SS.
Returns an empty array in singleplayer.