Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
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 }
SCR_BaseHintCondition
Definition: SCR_BaseHintCondition.c:2
GetGame
ArmaReforgerScripted GetGame()
Definition: game.c:1424
Attribute
typedef Attribute
Post-process effect of scripted camera.
Activate
protected void Activate()
Definition: SCR_BaseHintCondition.c:9
SCR_InputHintCondition
Definition: SCR_InputHintCondition.c:2
BaseContainerProps
SCR_AIGoalReaction_Follow BaseContainerProps
Handles insects that are supposed to be spawned around selected prefabs defined in prefab names array...
Definition: SCR_AIGoalReaction.c:468