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 (Some wiki formatting) |
||
(8 intermediate revisions by 2 users not shown) | |||
Line 10: | Line 10: | ||
|gr2= System | |gr2= System | ||
|descr= Returns data about squad of given unit loaded from squad.xml as well as | |descr= Returns data about squad of given unit loaded from [[squad.xml]] as well as the unit itself. | ||
{{Feature|informative|This command returns an empty array in single player.}} | |||
{{Feature| | |||
|s1= | |s1= [[squadParams]] unit | ||
|p1= unit: [[Object]] | |p1= unit: [[Object]] | ||
|r1= [[Array]] | |r1= [[Array]] in format [squadInfo, memberInfo, squadId, a3unitsId] where: | ||
[ | * squadInfo: [[Array]] of [[String]]s format [nick, name, email, web, picture, title] | ||
* memberInfo: [[Array]] of [[String]]s format [uid, name, fullname, email, icq, remark] | |||
:[uid, name, fullname, email, icq, remark] | * {{GVI|arma3|2.06|size= 0.75}} squadId: [[String]] - unique squad ID | ||
* {{GVI|arma3|2.06|size= 0.75}} a3unitsId: [[String]] - unique {{arma3}} Units ID | |||
: | |||
|x1= < | |x1= <sqf>_info = squadParams player;</sqf> | ||
|seealso= | |x2= <sqf>squadParams player params ["_squadInfo", "_memberInfo", "_squadID", "_a3unitsID"];</sqf> | ||
|seealso= [[squad.xml]] | |||
}} | }} | ||
Latest revision as of 15:15, 21 November 2023
Description
- Description:
- Returns data about squad of given unit loaded from squad.xml as well as the unit itself.
- Groups:
- Object ManipulationSystem
Syntax
- Syntax:
- squadParams unit
- Parameters:
- unit: Object
- Return Value:
- Array in format [squadInfo, memberInfo, squadId, a3unitsId] where:
Examples
- Example 1:
- Example 2:
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