squadParams: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\{\{GameCategory\|(arma[0123])\|[ _]?New[ _]Scripting[ _]Commands[ _]List\}\}" to "{{GameCategory|$1|New Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma3 |Game name=
| arma3 |Game name=
Line 12: Line 11:
|gr2= System |GROUP2=
|gr2= System |GROUP2=


____________________________________________________________________________________________


| 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]].  |DESCRIPTION=
____________________________________________________________________________________________


| '''squadParams''' unit |SYNTAX=
| '''squadParams''' unit |SYNTAX=
Line 23: Line 20:


| [[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>|RETURNVALUE=
____________________________________________________________________________________________
   
   
|x1= <code>_info = [[squadParams]] [[player]];</code> |EXAMPLE1=
|x1= <code>_info = [[squadParams]] [[player]];</code> |EXAMPLE1=
____________________________________________________________________________________________


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

Revision as of 04:44, 17 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

Notes

Bottom Section

Posted on July 19, 2015 - 21:43 (UTC)
Waffle SS.
Returns an empty array in singleplayer.