Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_DebugCameraEntity.c
Go to the documentation of this file.
1 [EntityEditorProps(category: "GameScripted/Camera", description: "Manual camera", color: "0 255 255 255")]
3 {
4 }
5 
8 {
9  //------------------------------------------------------------------------------------------------
10  protected void CreateDebugCamera()
11  {
13  if (!core)
14  {
15  Print("Config SCR_DebugCameraCore not found!", LogLevel.WARNING);
16  return;
17  }
18 
19  vector transform[4];
20  GetWorldTransform(transform);
21  core.CreateCamera(transform);
22  }
23 
24  //------------------------------------------------------------------------------------------------
28  void SCR_DebugCameraEntity(IEntitySource src, IEntity parent)
29  {
30  GetGame().GetCallqueue().CallLater(CreateDebugCamera, 1); //--- Make sure it's called after OnGameStart
31  }
32 }
SCR_DebugCameraEntity
void SCR_DebugCameraEntity(IEntitySource src, IEntity parent)
Definition: SCR_DebugCameraEntity.c:28
EntityEditorProps
enum EQueryType EntityEditorProps(category:"GameScripted/Sound", description:"THIS IS THE SCRIPT DESCRIPTION.", color:"0 0 255 255")
Definition: SCR_AmbientSoundsComponent.c:12
CreateDebugCamera
SCR_DebugCameraEntityClass SCR_CameraBaseClass CreateDebugCamera()
Debug camera spawned on given position.
Definition: SCR_DebugCameraEntity.c:10
GetGame
ArmaReforgerScripted GetGame()
Definition: game.c:1424
SCR_CameraBaseClass
Definition: SCR_CameraBase.c:2
GenericEntity
SCR_GenericBoxEntityClass GenericEntity
SCR_DebugCameraCore
Debug manual camera.
Definition: SCR_DebugCameraCore.c:5
SCR_DebugCameraEntityClass
Definition: SCR_DebugCameraEntity.c:2
category
params category
Definition: SCR_VehicleDamageManagerComponent.c:180