Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_TerrainCollisionManualCameraComponent.c
Go to the documentation of this file.
1
2
4[BaseContainerProps(), SCR_BaseManualCameraComponentTitle()]
6{
7 [Attribute(defvalue: "0.2")]
8 private float m_fMinHeight;
9
10 //------------------------------------------------------------------------------------------------
11 override void EOnCameraFrame(SCR_ManualCameraParam param)
12 {
13 vector pos = CoordFromCamera(param.transform[3]);
14 pos[1] = Math.Max(pos[1], param.world.GetSurfaceY(pos[0], pos[2]) + m_fMinHeight);
15 param.transform[3] = CoordToCamera(pos);
16 }
17
18 //------------------------------------------------------------------------------------------------
19 override bool EOnCameraInit()
20 {
21 return true;
22 }
23}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition Math.c:13
Parent class from which all SCR_ManualCamera components inherit.
Parameter for carrying information between individual camera components.
BaseWorld world
World in which the camera exists.
SCR_FieldOfViewSettings Attribute