squadParams

From Bohemia Interactive Community
Jump to navigation Jump to search
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 in format [squadInfo, memberInfo, squadId, a3unitsId] where:
  • squadInfo: Array of Strings format [nick, name, email, web, picture, title]
  • memberInfo: Array of Strings format [uid, name, fullname, email, icq, remark]
  • Arma 3 logo black.png2.06 squadId: String - unique squad ID
  • Arma 3 logo black.png2.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 or on the Forums.
Only post proven facts here! Add Note