squadParams: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma3 | | arma3 | ||
|1.18 | |1.18 | ||
|arg= global | |arg= global | ||
|gr1= Object Manipulation | |gr1= Object Manipulation | ||
|gr2= System | |gr2= System | ||
| Returns data about squad of given unit loaded from squad.xml.<br> | | Returns data about squad of given unit loaded from squad.xml.<br> | ||
All items in returned array are [[String]]. | All items in returned array are [[String]]. | ||
| '''squadParams''' unit | | '''squadParams''' unit | ||
|p1= unit: [[Object]] | |p1= unit: [[Object]] | ||
| [[Array]] - <nowiki>[[</nowiki>squadNick,squadName,squadEmail,squadWeb,squadPicture,squadTitle],[memberId,memberNick,memberName,memberEmail,memberIcq,memberRemark<nowiki>]]</nowiki> | | [[Array]] - <nowiki>[[</nowiki>squadNick,squadName,squadEmail,squadWeb,squadPicture,squadTitle],[memberId,memberNick,memberName,memberEmail,memberIcq,memberRemark<nowiki>]]</nowiki> | ||
|x1= <code>_info = [[squadParams]] [[player]];</code> | |x1= <code>_info = [[squadParams]] [[player]];</code> | ||
| [[squad.xml]] | | [[squad.xml]] | ||
}} | }} |
Revision as of 11:26, 18 January 2021
Description
- Description:
- Returns data about squad of given unit loaded from squad.xml.
All items in returned array are String. - Groups:
- Object ManipulationSystem
Syntax
- Syntax:
- squadParams unit
- Parameters:
- unit: Object
- Return Value:
- Array - [[squadNick,squadName,squadEmail,squadWeb,squadPicture,squadTitle],[memberId,memberNick,memberName,memberEmail,memberIcq,memberRemark]]
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.