Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ManualCameraAdjustSpeedHintCondition.c
Go to the documentation of this file.
1[BaseContainerProps(), SCR_BaseContainerHintCondition()]
3{
4 //------------------------------------------------------------------------------------------------
6 {
7 SCR_ManualCamera camera = SCR_ManualCamera.Cast(owner);
8 if (camera)
10 else
11 return null;
12 }
13
14 //------------------------------------------------------------------------------------------------
15 protected void OnSpeedChange(float speed, bool isManualChange)
16 {
17 if (isManualChange)
18 Activate();
19 }
20
21 //------------------------------------------------------------------------------------------------
22 override protected void OnInitCondition(Managed owner)
23 {
25 if (component)
26 component.GetOnSpeedChange().Insert(OnSpeedChange);
27 }
28
29 //------------------------------------------------------------------------------------------------
30 override protected void OnExitCondition(Managed owner)
31 {
33 if (component)
34 component.GetOnSpeedChange().Remove(OnSpeedChange);
35 }
36}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Adjusting speed at small increments for manual camera.
SCR_AdjustSpeedManualCameraComponent GetComponent(Managed owner)
SCR_BaseManualCameraComponent FindCameraComponent(typename type)