squadParams: Difference between revisions
Jump to navigation
Jump to search
Waffle SS. (talk | contribs) m (note typo) |
m (template:command argument fix) |
||
Line 11: | Line 11: | ||
| 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]]. |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| '''squadParams''' unit |= | | '''squadParams''' unit |SYNTAX= | ||
|p1= unit: [[Object]] |= | |p1= unit: [[Object]] |PARAMETER1= | ||
| [[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>|RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>_info = [[squadParams]] [[player]];</code> |= | |x1= <code>_info = [[squadParams]] [[player]];</code> |EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[squad.xml]] |= | | [[squad.xml]] |SEEALSO= | ||
}} | }} |
Revision as of 14:49, 7 April 2019
Description
- Description:
- Returns data about squad of given unit loaded from squad.xml.
All items in returned array are String. - Groups:
- Uncategorised
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
Notes
Bottom Section
- Posted on July 19, 2015 - 21:43 (UTC)
- Waffle SS.
- Returns an empty array in singleplayer.