Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_PIPCamera.c
Go to the documentation of this file.
5
6class SCR_PIPCamera : CameraBase
7{
8
9 //------------------------------------------------------------------------------------------------
10 // constructor
13 void SCR_PIPCamera(IEntitySource src, IEntity parent)
14 {
18 ClearEventMask(EntityEvent.INIT);
19 }
20
21 //------------------------------------------------------------------------------------------------
22 override void EOnActivate(IEntity owner)
23 {
24 super.EOnActivate(owner);
25
26 // CameraBase is activate by default, we don't want that here because UpdatePIPCamera is called from sight POSTFRAME event
27 Deactivate();
28 }
29
30 //------------------------------------------------------------------------------------------------
34 void ApplyProps(int index)
35 {
36 BaseWorld world = GetWorld();
37 world.SetCameraVerticalFOV(index, GetVerticalFOV());
38 world.SetCameraFarPlane(index, GetFarPlane());
39 world.SetCameraNearPlane(index, GetNearPlane());
40 world.SetCameraType(index, CameraType.PERSPECTIVE);
41 UpdatePIPCamera(0.0);
42 }
43
44 //------------------------------------------------------------------------------------------------
48 void UpdatePIPCamera(float timeSlice)
49 {
50 ApplyTransform(timeSlice);
51 //vector camMat[4];
52 //GetWorldTransform(camMat);
53 //GetWorld().SetCameraEx(index, camMat);
54 }
55}
void Deactivate()
enum SCR_ECompassType EntityEditorProps(category:"GameScripted/Gadgets", description:"Compass", color:"0 0 255 255")
Prefab data class for compass component.
SCR_DestructionSynchronizationComponentClass ScriptComponentClass int index
void UpdatePIPCamera(float timeSlice)
void ApplyProps(int index)
SCR_PIPCameraClass CameraBaseClass SCR_PIPCamera(IEntitySource src, IEntity parent)
override void EOnActivate(IEntity owner)
CameraBaseClass GenericEntityClass ApplyTransform(float timeslice)
Manually applies transformation. This is usually done in EOnPostFrame automatically.
proto external float GetFarPlane()
proto external float GetVerticalFOV()
proto external float GetNearPlane()
EntityEvent
Various entity events.
Definition EntityEvent.c:14
CameraType
Definition CameraType.c:14