Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_CampaignBuildingCameraEditorComponent.c
Go to the documentation of this file.
1[ComponentEditorProps(category: "GameScripted/Editor", description: "Camera for in-game editor. Works only with SCR_EditorBaseEntity!", icon: "WBData/ComponentEditorProps/componentEditor.png")]
5
9{
10 override protected void CreateCamera()
11 {
12 SCR_CampaignBuildingEditorComponent buildingComp = SCR_CampaignBuildingEditorComponent.Cast(FindEditorComponent(SCR_CampaignBuildingEditorComponent, true, true));
13 if (!buildingComp || !buildingComp.GetTrigger())
14 {
15 m_Manager.Close();
16 return;
17 }
18
19 super.CreateCamera();
20
22 if (!attachComponent)
23 return;
24
25 attachComponent.AttachTo(buildingComp.GetTrigger());
26 }
27};
enum EAIGroupCombatMode ComponentEditorProps(category:"GameScripted/AI", description:"Component for utility AI system for groups")
SCR_EditorManagerEntity m_Manager
SCR_BaseEditorComponent FindEditorComponent(typename type, bool showError=false, bool modeFirst=false)