Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_CampaignBuildingAreaMeshComponent.c
Go to the documentation of this file.
1 [ComponentEditorProps(category: "GameScripted/Area Mesh", description: "")]
3 {
4 }
5 
6 class SCR_CampaignBuildingAreaMeshComponent : SCR_TriggerAreaMeshComponent
7 {
8  [Attribute("10")]
9  protected float m_fBufferZone;
10 
11  [Attribute("false")]
12  protected bool m_bShouldEnableFrameUpdateDuringEditor;
13 
14  //------------------------------------------------------------------------------------------------
15  protected float GetBufferZone()
16  {
17  return m_fBufferZone;
18  }
19 
20  //------------------------------------------------------------------------------------------------
21  override float GetRadius()
22  {
23  BaseGameTriggerEntity trigger = BaseGameTriggerEntity.Cast(GetOwner());
24  if (!trigger)
25  return 0;
26 
27  return trigger.GetSphereRadius() + GetBufferZone();
28  }
29 
30  //------------------------------------------------------------------------------------------------
34  {
35  m_bShouldEnableFrameUpdateDuringEditor = val;
36  }
37 
38  //------------------------------------------------------------------------------------------------
42  {
43  return m_bShouldEnableFrameUpdateDuringEditor;
44  }
45 }
ComponentEditorProps
SCR_FragmentEntityClass ComponentEditorProps
SCR_CampaignBuildingAreaMeshComponentClass
Definition: SCR_CampaignBuildingAreaMeshComponent.c:2
EnableFrameUpdateDuringEditor
void EnableFrameUpdateDuringEditor(bool val)
Definition: SCR_CampaignBuildingAreaMeshComponent.c:33
GetRadius
override float GetRadius()
Definition: SCR_CampaignBuildingAreaMeshComponent.c:21
Attribute
SCR_CampaignBuildingAreaMeshComponentClass SCR_TriggerAreaMeshComponentClass Attribute("10")
Definition: SCR_CampaignBuildingAreaMeshComponent.c:8
GetOwner
IEntity GetOwner()
Owner entity of the fuel tank.
Definition: SCR_FuelNode.c:128
ShouldEnableFrameUpdateDuringEditor
bool ShouldEnableFrameUpdateDuringEditor()
Definition: SCR_CampaignBuildingAreaMeshComponent.c:41
SCR_TriggerAreaMeshComponentClass
Definition: SCR_TriggerAreaMeshComponent.c:2
category
params category
Definition: SCR_VehicleDamageManagerComponent.c:180