Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_SpawnPointAreaMeshComponent.c
Go to the documentation of this file.
1
[
ComponentEditorProps
(
category
:
"GameScripted/Area Mesh"
, description:
""
)]
2
class
SCR_SpawnPointAreaMeshComponentClass
:
SCR_BaseAreaMeshComponentClass
3
{
4
}
5
6
class
SCR_SpawnPointAreaMeshComponent : SCR_BaseAreaMeshComponent
7
{
8
//------------------------------------------------------------------------------------------------
9
override
float
GetRadius
()
10
{
11
SCR_SpawnPoint
spawnPoint =
SCR_SpawnPoint
.Cast(
GetOwner
());
12
return
spawnPoint.GetSpawnRadius();
13
}
14
15
//------------------------------------------------------------------------------------------------
16
override
void
EOnInit
(IEntity owner)
17
{
18
if
(!owner.IsInherited(
SCR_SpawnPoint
))
19
{
20
Debug.Error2(
"SCR_SpawnPointAreaMeshComponent"
,
"Component must be attached to SCR_SpawnPoint!"
);
21
return
;
22
}
23
24
GenerateAreaMesh
();
25
}
26
}
ComponentEditorProps
SCR_FragmentEntityClass ComponentEditorProps
GetRadius
SCR_SpawnPointAreaMeshComponentClass SCR_BaseAreaMeshComponentClass GetRadius()
Definition:
SCR_SpawnPointAreaMeshComponent.c:9
SCR_BaseAreaMeshComponentClass
Definition:
SCR_BaseAreaMeshComponent.c:2
SCR_SpawnPoint
Spawn point entity defines positions on which players can possibly spawn.
Definition:
SCR_SpawnPoint.c:27
SCR_SpawnPointAreaMeshComponentClass
Definition:
SCR_SpawnPointAreaMeshComponent.c:2
GetOwner
IEntity GetOwner()
Owner entity of the fuel tank.
Definition:
SCR_FuelNode.c:128
EOnInit
override void EOnInit(IEntity owner)
Definition:
SCR_SpawnPointAreaMeshComponent.c:16
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_SpawnPointAreaMeshComponent.c
Generated by
1.8.17