Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
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
enum EAIGroupCombatMode ComponentEditorProps(category:"GameScripted/AI", description:"Component for utility AI system for groups")
Definition
SCR_AIGroupUtilityComponent.c:12
GetRadius
float GetRadius()
Definition
SCR_CampaignBuildingAreaMeshComponent.c:21
GenerateAreaMesh
void GenerateAreaMesh()
Generate area mesh based on its settings.
Definition
SCR_BaseAreaMeshComponent.c:128
GetParent
Faction GetParent()
Definition
SCR_Faction.c:539
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
category
params category
Definition
SCR_VehicleDamageManagerComponent.c:302
IEntity
Definition
IEntity.c:13
SCR_BaseAreaMeshComponentClass
Definition
SCR_BaseAreaMeshComponent.c:3
SCR_EditorRestrictionZoneEntity
Definition
SCR_EditorRestrictionZoneEntity.c:6
SCR_EditorRestrictionZoneEntity::GetWarningZoneRadius
float GetWarningZoneRadius()
Definition
SCR_EditorRestrictionZoneEntity.c:45
SCR_EditorRestrictionZoneEntity::GetRestrictionZoneRadius
float GetRestrictionZoneRadius()
Definition
SCR_EditorRestrictionZoneEntity.c:27
SCR_ZoneRestrictionAreaMeshComponentClass
Definition
SCR_ZoneRestrictionAreaMeshComponent.c:3
GetOwner
IEntity GetOwner()
Owner entity of the fuel tank.
Definition
SCR_FuelNode.c:128
EOnInit
override void EOnInit(IEntity owner)
Definition
SCR_AIConfigComponent.c:87
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
Components
AreaMesh
SCR_ZoneRestrictionAreaMeshComponent.c
Generated by
1.17.0