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:
""
)]
2
class
SCR_MilitaryBaseAreaMeshComponentClass
:
SCR_BaseAreaMeshComponentClass
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
25
if
(!
m_MilitaryBaseComponent
)
26
{
27
Debug.Error2(
"SCR_MilitaryBaseAreaMeshComponent"
,
"SCR_MilitaryBaseComponent not found on owner entity!"
);
28
return
;
29
}
30
31
GenerateAreaMesh
();
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
scripts_Arma_Reforger_v1.1.0.42
scripts
Game
Components
AreaMesh
SCR_MilitaryBaseAreaMeshComponent.c
Generated by
1.8.17