Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_CampaignBuildingLimitCylinderManualCameraComponent.c
Go to the documentation of this file.
1
2
3
8[BaseContainerProps(), SCR_BaseManualCameraComponentTitle()]
10{
11 [Attribute(defvalue: "1", desc: "Multiplicator of camera height")]
12 protected float m_fHeightMultiplicator;
13
14 [Attribute(defvalue: "1", desc: "Multiplicator of camera range")]
15 protected float m_fRangeMultiplicator;
16
17 //------------------------------------------------------------------------------------------------
18 override bool EOnCameraInit()
19 {
21 if (!core)
22 return false;
23
24 SCR_EditorManagerEntity editorManager = core.GetEditorManager();
25 if (!editorManager)
26 return false;
27
28 SCR_EditorModeEntity modeEntity = editorManager.FindModeEntity(EEditorMode.BUILDING);
29 if (!modeEntity)
30 return false;
31
32 SCR_CampaignBuildingEditorComponent buildingComponent = SCR_CampaignBuildingEditorComponent.Cast(modeEntity.FindComponent(SCR_CampaignBuildingEditorComponent));
33 if (!buildingComponent)
34 return false;
35
36 ScriptedGameTriggerEntity areaTrigger = buildingComponent.GetTrigger();
37 if (!areaTrigger)
38 return false;
39
40 m_fRadius = areaTrigger.GetSphereRadius() * m_fRangeMultiplicator;
41 m_fHeightMinor = areaTrigger.GetSphereRadius() * m_fHeightMultiplicator;
42 super.EOnCameraInit();
43 return true;
44 }
45}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
void SCR_EditorManagerEntity(IEntitySource src, IEntity parent)
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Core component to manage SCR_EditorManagerEntity.
SCR_EditorManagerEntity GetEditorManager()
Limit camera movement within specific cylindrical area.
SCR_FieldOfViewSettings Attribute
EEditorMode
Editor mode that defines overall functionality.
Definition EEditorMode.c:6