onHCGroupSelectionChanged: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma2 | | arma2 | ||
|1.00 | |1.00 | ||
|gr1= High Command | |gr1= High Command | ||
|gr2= Event Handlers | |gr2= Event Handlers | ||
| Defines an action performed when [[High Command|high command]] group selection has been changed. | | Defines an action performed when [[High Command|high command]] group selection has been changed. | ||
Line 17: | Line 17: | ||
* removed via <code>[[onHCGroupSelectionChanged]] "";</code> or <code>[[onHCGroupSelectionChanged]] {};</code> | * removed via <code>[[onHCGroupSelectionChanged]] "";</code> or <code>[[onHCGroupSelectionChanged]] {};</code> | ||
* or replaced by <code>[[onHCGroupSelectionChanged]] "SomeOtherCommand(s)";</code> or <code>[[onHCGroupSelectionChanged]] {SomeOtherCommand(s)};</code> | * or replaced by <code>[[onHCGroupSelectionChanged]] "SomeOtherCommand(s)";</code> or <code>[[onHCGroupSelectionChanged]] {SomeOtherCommand(s)};</code> | ||
{{Informative|Since '''Arma 3''' ''v1.57'' a stackable version of this EH is available: [[Arma_3:_Event_Handlers/addMissionEventHandler#HCGroupSelectionChanged|HCGroupSelectionChanged]]}} | {{Informative|Since '''Arma 3''' ''v1.57'' a stackable version of this EH is available: [[Arma_3:_Event_Handlers/addMissionEventHandler#HCGroupSelectionChanged|HCGroupSelectionChanged]]}} | ||
| '''onHCGroupSelectionChanged''' command | | '''onHCGroupSelectionChanged''' command | ||
|p1= command: [[String]] or [[Code]] | |p1= command: [[String]] or [[Code]] | ||
|p2 | |p2= | ||
|p3 | |p3= | ||
| [[Nothing]] | | [[Nothing]] | ||
Line 36: | Line 36: | ||
[[hint]] [[format]] ["Group %1 has been deselected.", _group]; | [[hint]] [[format]] ["Group %1 has been deselected.", _group]; | ||
}; | }; | ||
};</code> | };</code> | ||
|x2= <code>[[onHCGroupSelectionChanged]] "[[player]] [[globalChat]] 'HC group selection has been changed.';";</code> | |x2= <code>[[onHCGroupSelectionChanged]] "[[player]] [[globalChat]] 'HC group selection has been changed.';";</code> | ||
| [[High Command]], [[hcAllGroups]], [[hcGroupParams]], [[hcLeader]], [[hcRemoveAllGroups]], [[hcRemoveGroup]], [[hcSelected]], [[hcSelectGroup]], [[hcSetGroup]], [[hcShowBar]], [[hcShownBar]], [[onCommandModeChanged]] | | [[High Command]], [[hcAllGroups]], [[hcGroupParams]], [[hcLeader]], [[hcRemoveAllGroups]], [[hcRemoveGroup]], [[hcSelected]], [[hcSelectGroup]], [[hcSetGroup]], [[hcShowBar]], [[hcShownBar]], [[onCommandModeChanged]] | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= |
Revision as of 01:32, 18 January 2021
Description
- Description:
- Defines an action performed when high command group selection has been changed.
Command receives 2 variables:- _group: Group - last selected/deselected group
- _isSelected: Boolean - new selection state of the specific group
- removed via
onHCGroupSelectionChanged "";
oronHCGroupSelectionChanged {};
- or replaced by
onHCGroupSelectionChanged "SomeOtherCommand(s)";
oronHCGroupSelectionChanged {SomeOtherCommand(s)};
- Groups:
- High CommandEvent Handlers
Syntax
Examples
- Example 1:
onHCGroupSelectionChanged { if (_isSelected) then { hint format ["Group %1 has been selected.", _group]; } else { hint format ["Group %1 has been deselected.", _group]; }; };
- Example 2:
onHCGroupSelectionChanged "player globalChat 'HC group selection has been changed.';";
Additional Information
- See also:
- High CommandhcAllGroupshcGroupParamshcLeaderhcRemoveAllGroupshcRemoveGrouphcSelectedhcSelectGrouphcSetGrouphcShowBarhcShownBaronCommandModeChanged
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