Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_ManualCameraAttachHintCondition.c
Go to the documentation of this file.
1 [BaseContainerProps(), SCR_BaseContainerHintCondition()]
3 {
4  //------------------------------------------------------------------------------------------------
5  protected SCR_AttachManualCameraComponent GetComponent(Managed owner)
6  {
7  SCR_ManualCamera camera = SCR_ManualCamera.Cast(owner);
8  if (camera)
9  return SCR_AttachManualCameraComponent.Cast(camera.FindCameraComponent(SCR_AttachManualCameraComponent));
10  else
11  return null;
12  }
13 
14  //------------------------------------------------------------------------------------------------
15  override protected void OnInitCondition(Managed owner)
16  {
17  SCR_AttachManualCameraComponent component = GetComponent(owner);
18  if (component)
19  component.GetOnAttachChange().Insert(Activate);
20  }
21 
22  //------------------------------------------------------------------------------------------------
23  override protected void OnExitCondition(Managed owner)
24  {
25  SCR_AttachManualCameraComponent component = GetComponent(owner);
26  if (component)
27  component.GetOnAttachChange().Remove(Activate);
28  }
29 }
SCR_BaseHintCondition
Definition: SCR_BaseHintCondition.c:2
SCR_ManualCamera
Definition: SCR_ManualCamera.c:16
SCR_ManualCameraAttachHintCondition
Definition: SCR_ManualCameraAttachHintCondition.c:2
Activate
protected void Activate()
Definition: SCR_BaseHintCondition.c:9
SCR_AttachManualCameraComponent
Attach camera to a target.
Definition: SCR_AttachManualCameraComponent.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