hcSetGroup: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "<h3 style='display:none'>Notes</h3> <dl class='command_description'> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> <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|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects? in MP|M...) |
||
Line 40: | Line 40: | ||
| [[High Command]],[[hcAllGroups]],[[hcGroupParams]],[[hcLeader]],[[hcRemoveAllGroups]],[[hcRemoveGroup]],[[hcSelected]],[[hcSelectGroup]],[[hcShowBar]],[[hcShownBar]],[[onHCGroupSelectionChanged]] | | [[High Command]],[[hcAllGroups]],[[hcGroupParams]],[[hcLeader]],[[hcRemoveAllGroups]],[[hcRemoveGroup]],[[hcSelected]],[[hcSelectGroup]],[[hcShowBar]],[[hcShownBar]],[[onHCGroupSelectionChanged]] | ||
| | | | ||
}} | }} | ||
Revision as of 10:51, 18 January 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