Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_InitInputManualCameraComponent.c
Go to the documentation of this file.
1 
4 [BaseContainerProps(), SCR_BaseManualCameraComponentTitle()]
6 {
7  [Attribute(defvalue: "0.1", desc: "How long it takes to check for initial input (it doesn't happen on the first frame)")]
8  private float m_fMinTime;
9 
10  [Attribute(defvalue: "0.5", desc: "After which duration is the input accepted anyway.")]
11  private float m_fMaxTime;
12 
13  //------------------------------------------------------------------------------------------------
14  override void EOnCameraFrame(SCR_ManualCameraParam param)
15  {
16  if (m_fMaxTime > 0 && (m_fMinTime > 0 || GetInputManager().GetActionValue("ManualCameraAny")))
17  param.isManualInputEnabled = false;
18  else
19  SetEnabled(false); //--- Disable the component after use
20 
21  m_fMinTime -= param.timeSlice;
22  m_fMaxTime -= param.timeSlice;
23  }
24 
25  //------------------------------------------------------------------------------------------------
26  override bool EOnCameraInit()
27  {
28  return true;
29  }
30 }
SCR_BaseManualCameraComponent
Parent class from which all SCR_ManualCamera components inherit.
Definition: SCR_BaseManualCameraComponent.c:5
SetEnabled
void SetEnabled(bool enabled)
Definition: SCR_BaseManualCameraComponent.c:91
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition: SCR_RespawnBriefingComponent.c:17
Attribute
typedef Attribute
Post-process effect of scripted camera.
SCR_InitInputManualCameraComponent
Enable user input only after buttons pressed when the camera was initialzied were released.
Definition: SCR_InitInputManualCameraComponent.c:5
SCR_ManualCameraParam
Parameter for carrying information between individual camera components.
Definition: SCR_ManualCameraParam.c:5
GetInputManager
protected InputManager GetInputManager()
Definition: SCR_BaseManualCameraComponent.c:65
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