Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_TriggerAreaMeshComponent.c
Go to the documentation of this file.
1 [ComponentEditorProps(category: "GameScripted/Area Mesh", description: "")]
3 {
4 }
5 
6 class SCR_TriggerAreaMeshComponent : SCR_BaseAreaMeshComponent
7 {
8  //------------------------------------------------------------------------------------------------
9  override float GetRadius()
10  {
11  BaseGameTriggerEntity trigger = BaseGameTriggerEntity.Cast(GetOwner());
12  return trigger.GetSphereRadius();
13  }
14 
15  //------------------------------------------------------------------------------------------------
16  override void EOnInit(IEntity owner)
17  {
18  if (!owner.IsInherited(BaseGameTriggerEntity))
19  {
20  Debug.Error2("SCR_TriggerAreaMeshComponent", "Component must be attached to BaseGameTriggerEntity!");
21  return;
22  }
23 
25  }
26 }
ComponentEditorProps
SCR_FragmentEntityClass ComponentEditorProps
SCR_BaseAreaMeshComponentClass
Definition: SCR_BaseAreaMeshComponent.c:2
GetRadius
SCR_TriggerAreaMeshComponentClass SCR_BaseAreaMeshComponentClass GetRadius()
Definition: SCR_TriggerAreaMeshComponent.c:9
GetOwner
IEntity GetOwner()
Owner entity of the fuel tank.
Definition: SCR_FuelNode.c:128
EOnInit
override void EOnInit(IEntity owner)
Definition: SCR_TriggerAreaMeshComponent.c:16
SCR_TriggerAreaMeshComponentClass
Definition: SCR_TriggerAreaMeshComponent.c:2
GenerateAreaMesh
void GenerateAreaMesh()
Generate area mesh based on its settings.
Definition: SCR_BaseAreaMeshComponent.c:128
category
params category
Definition: SCR_VehicleDamageManagerComponent.c:180