Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_ZoneRestrictionAreaMeshComponent.c
Go to the documentation of this file.
1
[
ComponentEditorProps
(
category
:
"GameScripted/Area Mesh"
, description:
""
)]
2
class
SCR_ZoneRestrictionAreaMeshComponentClass
:
SCR_BaseAreaMeshComponentClass
3
{
4
}
5
6
class
SCR_ZoneRestrictionAreaMeshComponent : SCR_BaseAreaMeshComponent
7
{
8
[
Attribute
(
"0"
,
desc
:
"Wether or not the Mesh area will get the inner zone (warning) or outer zone (death) radius"
)]
9
protected
bool
GetWarningRadius;
10
11
//------------------------------------------------------------------------------------------------
12
//Shows the zone when the players are killed
13
override
float
GetRadius
()
14
{
15
SCR_EditorRestrictionZoneEntity
zoneRestrictor =
SCR_EditorRestrictionZoneEntity
.Cast(
GetOwner
());
16
if
(!zoneRestrictor)
17
zoneRestrictor =
SCR_EditorRestrictionZoneEntity
.Cast(
GetOwner
().GetParent());
18
19
if
(GetWarningRadius)
20
return
zoneRestrictor.GetWarningZoneRadius();
21
else
22
return
zoneRestrictor.GetRestrictionZoneRadius();
23
}
24
25
//------------------------------------------------------------------------------------------------
26
override
void
EOnInit
(IEntity owner)
27
{
28
/*if (!owner.IsInherited(SCR_EditorRestrictionZoneEntity))
29
{
30
Debug.Error2("SCR_ZoneRestrictionAreaMeshComponentClass", "Component must be attached to SCR_EditorRestrictionZoneEntity!");
31
return;
32
}*/
33
34
GenerateAreaMesh
();
35
}
36
}
ComponentEditorProps
SCR_FragmentEntityClass ComponentEditorProps
SCR_BaseAreaMeshComponentClass
Definition:
SCR_BaseAreaMeshComponent.c:2
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition:
SCR_RespawnBriefingComponent.c:17
SCR_ZoneRestrictionAreaMeshComponentClass
Definition:
SCR_ZoneRestrictionAreaMeshComponent.c:2
GetOwner
IEntity GetOwner()
Owner entity of the fuel tank.
Definition:
SCR_FuelNode.c:128
EOnInit
override void EOnInit(IEntity owner)
Definition:
SCR_ZoneRestrictionAreaMeshComponent.c:26
SCR_EditorRestrictionZoneEntity
Definition:
SCR_EditorRestrictionZoneEntity.c:5
Attribute
SCR_ZoneRestrictionAreaMeshComponentClass SCR_BaseAreaMeshComponentClass Attribute("0", desc:"Wether or not the Mesh area will get the inner zone (warning) or outer zone (death) radius")
Definition:
SCR_ZoneRestrictionAreaMeshComponent.c:8
GetRadius
float GetRadius()
Definition:
SCR_CampaignBuildingAreaMeshComponent.c:21
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_ZoneRestrictionAreaMeshComponent.c
Generated by
1.8.17