onCommandModeChanged: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \{\{GameCategory\|[a-z]+[0-9]?\|Scripting Commands\}\}" to "")
m (Text replacement - " \| *(game[0-9]|version[0-9]|gr[0-9]|serverExec|mp|pr|descr|s[0-9]|p[0-9]{1,3}|r[0-9]|x1?[0-9]|seealso) *= +" to " |$1= ")
Line 20: Line 20:
{{Feature|Informative|Since '''Arma 3''' ''v1.57'' a stackable version of this EH is available: [[Arma 3: Mission Event Handlers#CommandModeChanged|CommandModeChanged]]}}
{{Feature|Informative|Since '''Arma 3''' ''v1.57'' a stackable version of this EH is available: [[Arma 3: Mission Event Handlers#CommandModeChanged|CommandModeChanged]]}}


|s1= '''onCommandModeChanged''' code
|s1= '''onCommandModeChanged''' code


|p1= code: [[Code]] or [[String]] -
|p1= code: [[Code]] or [[String]] -

Revision as of 23:21, 19 June 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