onCommandModeChanged: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma2 |Game name=
| arma2 |Game name=
Line 9: Line 8:


|gr2= High Command |GROUP2=
|gr2= High Command |GROUP2=
____________________________________________________________________________________________


| Defines code performed when hc command mode changes either because of (Left Ctrl + Space) shortcut or [[hcShowBar]] scripting command. Groups hc mode must contain at least one group for this command to work (see [[High Command]]). Attached code receives ''_isHighCommand'' boolean.  
| Defines code performed when hc command mode changes either because of (Left Ctrl + Space) shortcut or [[hcShowBar]] scripting command. Groups hc mode must contain at least one group for this command to work (see [[High Command]]). Attached code receives ''_isHighCommand'' boolean.  
{{Informative|Since '''Arma 3''' ''v1.57'' a stackable version of this EH is available: [[Arma_3:_Event_Handlers/addMissionEventHandler#CommandModeChanged|CommandModeChanged]]}}|DESCRIPTION=
{{Informative|Since '''Arma 3''' ''v1.57'' a stackable version of this EH is available: [[Arma_3:_Event_Handlers/addMissionEventHandler#CommandModeChanged|CommandModeChanged]]}}|DESCRIPTION=
____________________________________________________________________________________________


| '''onCommandModeChanged''' code |SYNTAX=
| '''onCommandModeChanged''' code |SYNTAX=
Line 31: Line 28:
//A3\modules_f\HC\data\scripts\HC_GUI.sqf</code>|EXAMPLE1=  
//A3\modules_f\HC\data\scripts\HC_GUI.sqf</code>|EXAMPLE1=  


____________________________________________________________________________________________


| [[High Command]], [[hcAllGroups]], [[hcGroupParams]], [[hcLeader]], [[hcRemoveAllGroups]], [[hcRemoveGroup]], [[hcSelected]], [[hcSelectGroup]], [[hcSetGroup]], [[hcShowBar]], [[hcShownBar]], [[onHCGroupSelectionChanged]] |SEEALSO=  
| [[High Command]], [[hcAllGroups]], [[hcGroupParams]], [[hcLeader]], [[hcRemoveAllGroups]], [[hcRemoveGroup]], [[hcSelected]], [[hcSelectGroup]], [[hcSetGroup]], [[hcShowBar]], [[hcShownBar]], [[onHCGroupSelectionChanged]] |SEEALSO=  


|  |MPBEHAVIOUR=  
|  |MPBEHAVIOUR=  
____________________________________________________________________________________________
}}
}}



Revision as of 02:58, 17 January 2021

Hover & click on the images for description

Description

Description:
Defines code performed when hc command mode changes either because of (Left Ctrl + Space) shortcut or hcShowBar scripting command. Groups hc mode must contain at least one group for this command to work (see High Command). Attached code receives _isHighCommand boolean.
Since Arma 3 v1.57 a stackable version of this EH is available: CommandModeChanged
Groups:
Event HandlersHigh Command

Syntax

Syntax:
onCommandModeChanged code
Parameters:
code: Code or String -
Return Value:
Nothing

Examples

Example 1:
//Examples in-use can be found in: //ca\modules\HC\data\scripts\HC_GUI.sqf //A3\modules_f\HC\data\scripts\HC_GUI.sqf

Additional Information

See also:
High CommandhcAllGroupshcGroupParamshcLeaderhcRemoveAllGroupshcRemoveGrouphcSelectedhcSelectGrouphcSetGrouphcShowBarhcShownBaronHCGroupSelectionChanged

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

Notes

Bottom Section