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:
""
)]
2
class
SCR_TriggerAreaMeshComponentClass
:
SCR_BaseAreaMeshComponentClass
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
24
GenerateAreaMesh
();
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
scripts_Arma_Reforger_v1.1.0.42
scripts
Game
Components
AreaMesh
SCR_TriggerAreaMeshComponent.c
Generated by
1.8.17