hcSetGroup: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Fix example) |
Lou Montana (talk | contribs) m (Add Optional tags) |
||
Line 20: | Line 20: | ||
|p2= group: [[Group]] |PARAMETER2= | |p2= group: [[Group]] |PARAMETER2= | ||
|p3= groupName: [[String]] |PARAMETER3= | |p3= groupName: [[String]] - (Optional) |PARAMETER3= | ||
|p4= team: [[String]] - can be one of: | |p4= team: [[String]] - (Optional, default "teamMain") can be one of: | ||
* "teamMain" | * "teamMain" | ||
* "teamRed" | * "teamRed" |
Revision as of 16:50, 17 November 2020
Description
- Description:
- Add group to unit's high command bar.
- Groups:
- High Command
Syntax
- Syntax:
- unit hcSetGroup [group, groupName, team]
- Parameters:
- unit: Object - the leader
- group: Group
- groupName: String - (Optional)
- team: String - (Optional, default "teamMain") can be one of:
- "teamMain"
- "teamRed"
- "teamGreen"
- "teamBlue"
- "teamYellow"
- Return Value:
- Nothing
Examples
- Example 1:
unit hcSetGroup [group, "HQ", "teamred"];
- Example 2:
player hcSetGroup [group];
- Example 3:
if (player != hcLeader _group) then { hcLeader _group hcRemoveGroup _group; player hcSetGroup [_group]; };
Additional Information
- See also:
- High CommandhcAllGroupshcGroupParamshcLeaderhcRemoveAllGroupshcRemoveGrouphcSelectedhcSelectGrouphcShowBarhcShownBaronHCGroupSelectionChanged
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