squadParams

From Bohemia Interactive Community
Hover & click on the images for description

Description

Description:
Returns data about squad of given unit loaded from squad.xml as well as the unit itself.
This command returns an empty array in single player.
Groups:
Object ManipulationSystem

Syntax

Syntax:
squadParams unit
Parameters:
unit: Object
Return Value:
Array with [squadInfo, memberInfo, squadId, a3unitsId]
  • squadInfo: Array with [nick, name, email, web, picture, title]
    • nick: String - squad nickname
    • name: String - squad full name
    • email: String - squad contact email
    • web: String - squad website URL
    • picture: String - squad picture URL
    • title: String - squad title
  • memberInfo: Array with [uid, name, fullname, email, icq, remark]
    • uid: String - member unique ID
    • name: String - member name
    • fullname: String - member full name
    • email: String - member email
    • icq: String - member ICQ number
    • remark: String - member remark
  • Arma 3 logo black.png 2.06 squadId: String - unique squad ID
  • Arma 3 logo black.png 2.06 a3unitsId: String - unique Arma 3 Units ID

Examples

Example 1:
_info = squadParams player;
Example 2:
squadParams player params ["_squadInfo", "_memberInfo", "_squadID", "_a3unitsID"];

Additional Information

See also:
squad.xml

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note