hcSetGroup: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|s([0-9])\= ([^' ]+)'''([^' ]+)'''([^ ]*) " to "|s$1= $2$3$4 ") |
Lou Montana (talk | contribs) m (Text replacement - "\[\[#Examples\|Example ([0-9])\]\]" to "{{HashLink|#Example $1}}") |
||
Line 17: | Line 17: | ||
|descr= Add group to unit's [[High Command|high command]] bar. | |descr= Add group to unit's [[High Command|high command]] bar. | ||
{{Feature|Informative|The previous HC leader should be [[hcRemoveGroup|removed]] before adding the new one (see ''' | {{Feature|Informative|The previous HC leader should be [[hcRemoveGroup|removed]] before adding the new one (see '''{{HashLink|#Example 3}}''').}} | ||
|s1= unit [[hcSetGroup]] [group, groupName, team] | |s1= unit [[hcSetGroup]] [group, groupName, team] |
Revision as of 23:38, 17 August 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