hcSetGroup: Difference between revisions
Lou Montana (talk | contribs) m (Text replacement - "\| *arma2 * * *\| *([0-1]\.[0-9]{2}) *  \|game2" to "|game1= arma2 |version1= $1  |game2")  | 
				Lou Montana (talk | contribs)  m (Text replacement - " \{\{GameCategory\|[a-z]+[0-9]?\|Scripting Commands\}\}" to "")  | 
				||
| Line 48: | Line 48: | ||
|seealso= [[High Command]],[[hcAllGroups]],[[hcGroupParams]],[[hcLeader]],[[hcRemoveAllGroups]],[[hcRemoveGroup]],[[hcSelected]],[[hcSelectGroup]],[[hcShowBar]],[[hcShownBar]],[[onHCGroupSelectionChanged]]  | |seealso= [[High Command]],[[hcAllGroups]],[[hcGroupParams]],[[hcLeader]],[[hcRemoveAllGroups]],[[hcRemoveGroup]],[[hcSelected]],[[hcSelectGroup]],[[hcShowBar]],[[hcShownBar]],[[onHCGroupSelectionChanged]]  | ||
}}  | }}  | ||
Revision as of 22:39, 16 June 2021
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