onCommandModeChanged: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "\| *p([0-9]+) *=([^↵]+) -↵" to "|p$1=$2")
 
(41 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma2 |Game name=
|game1= arma2
|version1= 1.00


|1.00|Game version=
|game2= arma2oa
|version2= 1.50


|gr1= Event Hanlders |GROUP1=
|game3= tkoh
|version3= 1.00


|gr2= High Command |GROUP2=
|game4= arma3
____________________________________________________________________________________________
|version4= 0.50


| 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.
|gr1= Event Handlers
{{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=
|gr2= High Command


|p1= code: [[Code]] or [[String]] |PARAMETER1=
|descr= 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.
{{Feature|informative|Since '''Arma 3''' ''v1.57'' a stackable version of this EH is available: [[Arma 3: Mission Event Handlers#CommandModeChanged|CommandModeChanged]]}}


|p2= |PARAMETER2=  
|s1= [[onCommandModeChanged]] code


|p3= |PARAMETER3=  
|p1= code: [[Code]] or [[String]]
|r1= [[Nothing]]


| [[Nothing]] |RETURNVALUE=
|x1= <sqf>//Examples in-use can be found in:
 
 
|x1= <code>//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>|EXAMPLE1=
//A3\modules_f\HC\data\scripts\HC_GUI.sqf</sqf>
 
____________________________________________________________________________________________
 
| [[High Command]], [[hcAllGroups]], [[hcGroupParams]], [[hcLeader]], [[hcRemoveAllGroups]], [[hcRemoveGroup]], [[hcSelected]], [[hcSelectGroup]], [[hcSetGroup]], [[hcShowBar]], [[hcShownBar]], [[onHCGroupSelectionChanged]] |SEEALSO=


| |MPBEHAVIOUR=  
|seealso= [[High Command]] [[hcAllGroups]] [[hcGroupParams]] [[hcLeader]] [[hcRemoveAllGroups]] [[hcRemoveGroup]] [[hcSelected]] [[hcSelectGroup]] [[hcSetGroup]] [[hcShowBar]] [[hcShownBar]] [[onHCGroupSelectionChanged]]
____________________________________________________________________________________________
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 12:51, 26 March 2024

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