onCommandModeChanged: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 $2")
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
Line 26: Line 26:
|r1= [[Nothing]]
|r1= [[Nothing]]


|x1= <code>//Examples in-use can be found in:
|x1= <sqf>//Examples in-use can be found in:


//ca\modules\HC\data\scripts\HC_GUI.sqf
//ca\modules\HC\data\scripts\HC_GUI.sqf
//A3\modules_f\HC\data\scripts\HC_GUI.sqf</code>
//A3\modules_f\HC\data\scripts\HC_GUI.sqf</sqf>


|seealso= [[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]]
}}
}}

Revision as of 11:24, 13 May 2022

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 Command hcAllGroups hcGroupParams hcLeader hcRemoveAllGroups hcRemoveGroup hcSelected hcSelectGroup hcSetGroup 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