hcSetGroup: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{Feature|Informative|" to "{{Feature|informative|") |
Lou Montana (talk | contribs) m (Text replacement - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>") |
||
Line 40: | Line 40: | ||
|x2= <sqf>player hcSetGroup [group];</sqf> | |x2= <sqf>player hcSetGroup [group];</sqf> | ||
|x3= <sqf>if (player != hcLeader _group) then | |x3= <sqf> | ||
if (player != hcLeader _group) then | |||
{ | { | ||
hcLeader _group hcRemoveGroup _group; | hcLeader _group hcRemoveGroup _group; | ||
player hcSetGroup [_group]; | player hcSetGroup [_group]; | ||
};</sqf> | }; | ||
</sqf> | |||
|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 11:34, 3 September 2024
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:
- Example 2:
- Example 3:
Additional Information
- See also:
- High Command hcAllGroups hcGroupParams hcLeader hcRemoveAllGroups hcRemoveGroup hcSelected hcSelectGroup hcShowBar hcShownBar onHCGroupSelectionChanged
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