Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_CapturePointAreaMeshComponent.c
Go to the documentation of this file.
1
[
ComponentEditorProps
(
category
:
"GameScripted/Area Mesh"
, description:
""
)]
2
class
SCR_CapturePointAreaMeshComponentClass
:
SCR_BaseAreaMeshComponentClass
3
{
4
}
5
6
class
SCR_CapturePointAreaMeshComponent : SCR_BaseAreaMeshComponent
7
{
8
SCR_SeizingComponent
m_SeizingComponent
;
9
10
//------------------------------------------------------------------------------------------------
11
override
float
GetRadius
()
12
{
13
return
m_SeizingComponent
.GetRadius();
14
}
15
16
//------------------------------------------------------------------------------------------------
17
override
void
EOnInit
(IEntity owner)
18
{
19
m_SeizingComponent
=
SCR_SeizingComponent
.Cast(
GetOwner
().FindComponent(
SCR_SeizingComponent
));
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_SeizingComponent
)
26
{
27
Debug.Error2(
"SCR_CapturePointAreaMeshComponent"
,
"SCR_SeizingComponent not found on owner entity!"
);
28
return
;
29
}
30
31
GenerateAreaMesh
();
32
}
33
}
ComponentEditorProps
SCR_FragmentEntityClass ComponentEditorProps
GetRadius
override float GetRadius()
Definition:
SCR_CapturePointAreaMeshComponent.c:11
m_SeizingComponent
SCR_CapturePointAreaMeshComponentClass m_SeizingComponent
SCR_BaseAreaMeshComponentClass
Definition:
SCR_BaseAreaMeshComponent.c:2
GetGame
ArmaReforgerScripted GetGame()
Definition:
game.c:1424
SCR_SeizingComponent
Definition:
SCR_SeizingComponent.c:18
GetOwner
IEntity GetOwner()
Owner entity of the fuel tank.
Definition:
SCR_FuelNode.c:128
EOnInit
override void EOnInit(IEntity owner)
Definition:
SCR_CapturePointAreaMeshComponent.c:17
SCR_CapturePointAreaMeshComponentClass
Definition:
SCR_CapturePointAreaMeshComponent.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
scripts_Arma_Reforger_v1.1.0.42
scripts
Game
Components
AreaMesh
SCR_CapturePointAreaMeshComponent.c
Generated by
1.8.17