Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_InitInputManualCameraComponent.c
Go to the documentation of this file.
1
2
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_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Parent class from which all SCR_ManualCamera components inherit.
Enable user input only after buttons pressed when the camera was initialzied were released.
Parameter for carrying information between individual camera components.
float timeSlice
Frame time slice.
SCR_FieldOfViewSettings Attribute