Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_MilitaryBaseAreaMeshComponent.c
Go to the documentation of this file.
1 [ComponentEditorProps(category: "GameScripted/Area Mesh", description: "")]
3 {
4 }
5 
6 class SCR_MilitaryBaseAreaMeshComponent : SCR_BaseAreaMeshComponent
7 {
8  SCR_MilitaryBaseComponent m_MilitaryBaseComponent;
9 
10  //------------------------------------------------------------------------------------------------
11  override float GetRadius()
12  {
13  return m_MilitaryBaseComponent.GetRadius();
14  }
15 
16  //------------------------------------------------------------------------------------------------
17  override void EOnInit(IEntity owner)
18  {
19  m_MilitaryBaseComponent = SCR_MilitaryBaseComponent.Cast(GetOwner().FindComponent(SCR_MilitaryBaseComponent));
20 
21  // This should only help with radius setup, do not show in play mode.
22  if (GetGame().InPlayMode())
23  return;
24 
26  {
27  Debug.Error2("SCR_MilitaryBaseAreaMeshComponent", "SCR_MilitaryBaseComponent not found on owner entity!");
28  return;
29  }
30 
32  }
33 }
ComponentEditorProps
SCR_FragmentEntityClass ComponentEditorProps
SCR_BaseAreaMeshComponentClass
Definition: SCR_BaseAreaMeshComponent.c:2
GetGame
ArmaReforgerScripted GetGame()
Definition: game.c:1424
m_MilitaryBaseComponent
SCR_MilitaryBaseAreaMeshComponentClass m_MilitaryBaseComponent
GetOwner
IEntity GetOwner()
Owner entity of the fuel tank.
Definition: SCR_FuelNode.c:128
SCR_MilitaryBaseAreaMeshComponentClass
Definition: SCR_MilitaryBaseAreaMeshComponent.c:2
EOnInit
override void EOnInit(IEntity owner)
Definition: SCR_MilitaryBaseAreaMeshComponent.c:17
GenerateAreaMesh
void GenerateAreaMesh()
Generate area mesh based on its settings.
Definition: SCR_BaseAreaMeshComponent.c:128
GetRadius
override float GetRadius()
Definition: SCR_MilitaryBaseAreaMeshComponent.c:11
category
params category
Definition: SCR_VehicleDamageManagerComponent.c:180