squadParams: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
m (Text replacement - "‎" to "")
Line 28: Line 28:
|x1= <sqf>_info = squadParams player;</sqf>
|x1= <sqf>_info = squadParams player;</sqf>


|seealso= [[squad.xml]]
|seealso= [[squad.xml]]
}}
}}



Revision as of 11:54, 26 April 2023

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 - in format :
[
[nick, name, email, web, picture, title], // squad info
[uid, name, fullname, email, icq, remark], // unit info
squadId, // unique squad ID (Since Arma 2.05.147777)
a3unitsId // unique Arma 3 Units ID (Since Arma 2.05.147777)
]

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.