Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_DebugCameraEntity.c
Go to the documentation of this file.
1[EntityEditorProps(category: "GameScripted/Camera", description: "Manual camera", color: "0 255 255 255")]
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 //------------------------------------------------------------------------------------------------
29 {
30 GetGame().GetCallqueue().CallLater(CreateDebugCamera, 1); //--- Make sure it's called after OnGameStart
31 }
32}
ArmaReforgerScripted GetGame()
Definition game.c:1398
enum SCR_ECompassType EntityEditorProps(category:"GameScripted/Gadgets", description:"Compass", color:"0 0 255 255")
Prefab data class for compass component.
SCR_DebugCameraEntityClass SCR_CameraBaseClass CreateDebugCamera()
Debug camera spawned on given position.
void SCR_DebugCameraEntity(IEntitySource src, IEntity parent)
proto external void GetWorldTransform(out vector mat[])
See IEntity::GetTransform.
Debug manual camera.
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
LogLevel
Enum with severity of the logging message.
Definition LogLevel.c:14