Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_InitInputManualCameraComponent.c
Go to the documentation of this file.
1
2
4
[
BaseContainerProps
(), SCR_BaseManualCameraComponentTitle()]
5
class
SCR_InitInputManualCameraComponent
:
SCR_BaseManualCameraComponent
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
}
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
SCR_BaseManualCameraComponent
Parent class from which all SCR_ManualCamera components inherit.
Definition
SCR_BaseManualCameraComponent.c:6
SCR_BaseManualCameraComponent::EOnCameraInit
bool EOnCameraInit()
SCR_BaseManualCameraComponent::GetInputManager
InputManager GetInputManager()
Definition
SCR_BaseManualCameraComponent.c:70
SCR_BaseManualCameraComponent::SetEnabled
void SetEnabled(bool enabled)
Definition
SCR_BaseManualCameraComponent.c:96
SCR_InitInputManualCameraComponent
Enable user input only after buttons pressed when the camera was initialzied were released.
Definition
SCR_InitInputManualCameraComponent.c:6
SCR_ManualCameraParam
Parameter for carrying information between individual camera components.
Definition
SCR_ManualCameraParam.c:6
SCR_ManualCameraParam::timeSlice
float timeSlice
Frame time slice.
Definition
SCR_ManualCameraParam.c:9
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
Camera
Components
SCR_InitInputManualCameraComponent.c
Generated by
1.17.0