squadParams: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| *(game[0-9]|version[0-9]|gr[0-9]|serverExec|mp|pr|descr|s[0-9]|p[0-9]{1,3}|r[0-9]|x1?[0-9]|seealso) *= +" to " |$1= ") |
Lou Montana (talk | contribs) m (Text replacement - "\|s([0-9])\= '''([^' ]+)'''([^ ]+) " to "|s$1= $2$3 ") |
||
Line 14: | Line 14: | ||
{{Feature|Informative| Since Arma 2.05.147777 return array is extended to contain unique squad ID as well as Arma 3 units ID}} | {{Feature|Informative| Since Arma 2.05.147777 return array is extended to contain unique squad ID as well as Arma 3 units ID}} | ||
|s1= | |s1= [[squadParams]] unit | ||
|p1= unit: [[Object]] | |p1= unit: [[Object]] |
Revision as of 17:10, 20 June 2021
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. - 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.