hcSetGroup: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " " to " ") |
Lou Montana (talk | contribs) m (Text replacement - "\{\{( *)Informative( *)\|" to "{{$1Feature$2|$2Informative$2|") |
||
Line 9: | Line 9: | ||
| Add group to unit's [[High Command|high command]] bar. | | Add group to unit's [[High Command|high command]] bar. | ||
{{Informative|The previous HC leader should be [[hcRemoveGroup|removed]] before adding the new one (see '''[[#Examples|Example 3]]''').}} | {{Feature|Informative|The previous HC leader should be [[hcRemoveGroup|removed]] before adding the new one (see '''[[#Examples|Example 3]]''').}} | ||
| unit '''hcSetGroup''' [group, groupName, team] | | unit '''hcSetGroup''' [group, groupName, team] |
Revision as of 00:14, 7 February 2021
Description
- Description:
- Description needed
- Groups:
- High Command
Syntax
- Syntax:
- Syntax needed
- 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:
- Return value needed
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:
- See also needed
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