squadParams: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 12: Line 12:
|descr= Returns data about squad of given unit loaded from squad.xml as well as about unit itself.<br>
|descr= Returns data about squad of given unit loaded from squad.xml as well as about unit itself.<br>
All items in returned array are [[String]].
All items in returned array are [[String]].
{{Feature|Informative| Since Arma 2.05.147777 return array is extended to contain unique squad ID as well as Arma 3 units ID}}


|s1=  '''squadParams''' unit
|s1=  '''squadParams''' unit
Line 17: Line 18:
|p1= unit: [[Object]]
|p1= unit: [[Object]]


|r1= [[Array]] - <nowiki>[[</nowiki>squadNick,squadName,squadEmail,squadWeb,squadPicture,squadTitle],[memberId,memberNick,memberName,memberEmail,memberIcq,memberRemark<nowiki>]]</nowiki>
|r1= [[Array]] - <nowiki>[[</nowiki>squadNick,squadName,squadEmail,squadWeb,squadPicture,squadTitle],[memberId,memberNick,memberName,memberEmail,memberIcq,memberRemark<nowiki>], squadId, a3unitsId]</nowiki>


|x1= <code>_info = [[squadParams]] [[player]];</code>
|x1= <code>_info = [[squadParams]] [[player]];</code>

Revision as of 16:46, 19 June 2021

Hover & click on the images for description

Description

Description:
Returns data about squad of given unit loaded from squad.xml as well as about unit itself.
All items in returned array are String.
Since Arma 2.05.147777 return array is extended to contain unique squad ID as well as Arma 3 units ID
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], squadId, a3unitsId]

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.