squadParams: Difference between revisions
Waffle SS. (talk | contribs) m (note typo) |
BrettMayson (talk | contribs) mNo edit summary |
||
| (46 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| arma3 |= | |game1= arma3 | ||
|version1= 1.18 | |||
| | |arg= global | ||
| | |gr1= Object Manipulation | ||
|gr2= System | |||
| Returns data about squad of given unit loaded from squad.xml. | |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.}} | |||
| | |s1= [[squadParams]] unit | ||
|p1= unit: [[Object]] | |p1= unit: [[Object]] | ||
| [[Array]] | |r1= [[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 | |||
* {{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= <sqf>_info = squadParams player;</sqf> | ||
|x2= <sqf>squadParams player params ["_squadInfo", "_memberInfo", "_squadID", "_a3unitsID"];</sqf> | |||
|seealso= [[squad.xml]] | |||
}} | }} | ||
Latest revision as of 10:02, 2 January 2026
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 with [squadInfo, memberInfo, squadId, a3unitsId]
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.
Only post proven facts here! Add Note