DayZ Scripts
v1.21.156300 ยท Jun 20, 2023
 
Loading...
Searching...
No Matches
Camera.c
Go to the documentation of this file.
1class Camera extends Entity
2{
7 static proto native Camera GetCurrentCamera();
8
13 static proto native float GetCurrentFOV();
14
24 static proto native void InterpolateTo(Camera targetCamera, float time, int type);
25
30 proto native void SetNearPlane(float nearPlane);
31
35 proto native float GetNearPlane();
36
40 proto native void SetActive(bool active);
41
46 proto native bool IsActive();
47
52 proto native void SetFOV(float fov);
53
59 proto native void SetFocus(float distance, float blur);
60
65 proto native void LookAt(vector targetPos);
66};
67
68//-----------------------------------------------------------------------------
69class FreeDebugCamera extends Camera
70{
75 static proto native FreeDebugCamera GetInstance();
76
81 proto native void SetFreezed(bool freezed);
82
87 proto native bool IsFreezed();
88
93 proto native Object GetCrosshairObject();
94};
static proto native FreeDebugCamera GetInstance()
Returns reference to FreeDebugCamera (it's singleton, thus only one instance is present)
proto native bool IsFreezed()
Returns if camera is freezed (you can't move it)
proto native void SetFreezed(bool freezed)
Sets cameras freeze state.
proto native Object GetCrosshairObject()
Gets object that free camera is currently pointing at.
Definition Camera.c:2
proto native void SetNearPlane(float nearPlane)
proto native void SetFocus(float distance, float blur)
Depth of Field settings.
proto native void SetActive(bool active)
Sets this camera as active.
static proto native float GetCurrentFOV()
Returns FOV of current camera object.
proto native bool IsActive()
Is this camera active?
proto native void SetFOV(float fov)
Field of View settings.
static proto native Camera GetCurrentCamera()
Returns active Camera instance (note: player's camera is not Camera instance - thus it return null)
proto native float GetNearPlane()
static proto native void InterpolateTo(Camera targetCamera, float time, int type)
Interpolation between camera instances (current camera becomes targetCamera at the end of interpolati...
proto native void LookAt(vector targetPos)
Orientation change by lookAt point.