Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ControlPlayerManualCameraComponent.c
Go to the documentation of this file.
1
2
4[BaseContainerProps(), SCR_BaseManualCameraComponentTitle()]
6{
7 [Attribute(defvalue: "MenuContext", desc: "Context which will block out character movement context debug menu entry for character movement in camera is disabled.")]
8 protected string m_sBlockingContext;
9
10 //------------------------------------------------------------------------------------------------
12 {
13 if (DiagMenu.GetValue(SCR_DebugMenuID.DEBUGUI_MANUAL_CAMERA_CONTROL_PLAYER))
14 {
15 //--- Block camera movement
16 param.isManualInputEnabled = false;
17 }
18 else
19 {
20 //--- Block character movement
21 m_InputManager.ActivateContext(m_sBlockingContext);
22 }
23 }
24
25 //------------------------------------------------------------------------------------------------
26 override bool EOnCameraInit()
27 {
28 DiagMenu.RegisterBool(SCR_DebugMenuID.DEBUGUI_MANUAL_CAMERA_CONTROL_PLAYER, "", "Control player", "Manual Camera", false);
29 return true;
30 }
31
32 //------------------------------------------------------------------------------------------------
33 override void EOnCameraExit()
34 {
35 DiagMenu.Unregister(SCR_DebugMenuID.DEBUGUI_MANUAL_CAMERA_CONTROL_PLAYER);
36 }
37};
SCR_DebugMenuID
This enum contains all IDs for DiagMenu entries added in script.
Definition DebugMenuID.c:4
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Diagnostic and developer menu system.
Definition DiagMenu.c:18
Parent class from which all SCR_ManualCamera components inherit.
override void EOnCameraFrame(SCR_ManualCameraParam param)
Parameter for carrying information between individual camera components.
SCR_FieldOfViewSettings Attribute