Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_ControlPlayerManualCameraComponent.c
Go to the documentation of this file.
1 
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  //------------------------------------------------------------------------------------------------
11  override void EOnCameraFrame(SCR_ManualCameraParam param)
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 };
m_InputManager
protected InputManager m_InputManager
Definition: SCR_BaseManualCameraComponent.c:15
SCR_BaseManualCameraComponent
Parent class from which all SCR_ManualCamera components inherit.
Definition: SCR_BaseManualCameraComponent.c:5
SCR_ControlPlayerCameraComponent
Control player's avatar in the camera.
Definition: SCR_ControlPlayerManualCameraComponent.c:5
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_ManualCameraParam
Parameter for carrying information between individual camera components.
Definition: SCR_ManualCameraParam.c:5
SCR_DebugMenuID
SCR_DebugMenuID
This enum contains all IDs for DiagMenu entries added in script.
Definition: DebugMenuID.c:3
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