Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_CampaignBuildingLimitCylinderManualCameraComponent.c
Go to the documentation of this file.
1 
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  SCR_FreeRoamBuildingClientTriggerEntity areaTrigger = SCR_FreeRoamBuildingClientTriggerEntity.Cast(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_LimitCylinderManualCameraComponent
Limit camera movement within specific cylindrical area.
Definition: SCR_LimitCylinderManualCameraComponent.c:5
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition: SCR_RespawnBriefingComponent.c:17
SCR_EditorModeEntity
Definition: SCR_EditorModeEntity.c:22
SCR_CampaignBuildingLimitCylinderManualCameraComponent
Definition: SCR_CampaignBuildingLimitCylinderManualCameraComponent.c:9
SCR_FreeRoamBuildingClientTriggerEntity
Definition: SCR_FreeRoamBuildingClientTriggerEntity.c:6
Attribute
typedef Attribute
Post-process effect of scripted camera.
SCR_EditorManagerCore
Core component to manage SCR_EditorManagerEntity.
Definition: SCR_EditorManagerCore.c:5
m_fRadius
float m_fRadius
Definition: SCR_AITargetClusterState.c:30
EEditorMode
EEditorMode
Editor mode that defines overall functionality.
Definition: EEditorMode.c:5
BaseContainerProps
SCR_AIGoalReaction_Follow BaseContainerProps
Handles insects that are supposed to be spawned around selected prefabs defined in prefab names array...
Definition: SCR_AIGoalReaction.c:468
SCR_EditorManagerEntity
Definition: SCR_EditorManagerEntity.c:26