Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_InputHintCondition.c
Go to the documentation of this file.
1[BaseContainerProps(), SCR_BaseContainerHintCondition()]
3{
4 [Attribute()]
5 protected ref array<string> m_aActionNames;
6
7 //------------------------------------------------------------------------------------------------
8 override protected void OnInitCondition(Managed owner)
9 {
10 InputManager inputManager = GetGame().GetInputManager();
11 for (int i, count = m_aActionNames.Count(); i < count; i++)
12 {
13 inputManager.AddActionListener(m_aActionNames[i], EActionTrigger.DOWN, Activate);
14 }
15 }
16
17 //------------------------------------------------------------------------------------------------
18 override protected void OnExitCondition(Managed owner)
19 {
20 InputManager inputManager = GetGame().GetInputManager();
21 for (int i, count = m_aActionNames.Count(); i < count; i++)
22 {
23 inputManager.RemoveActionListener(m_aActionNames[i], EActionTrigger.DOWN, Activate);
24 }
25 }
26}
ArmaReforgerScripted GetGame()
Definition game.c:1398
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Input management system for user interactions.
void OnInitCondition(Managed owner)
ref array< string > m_aActionNames
void OnExitCondition(Managed owner)
SCR_FieldOfViewSettings Attribute
EActionTrigger