Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ZoneRestrictionAreaMeshComponent.c
Go to the documentation of this file.
1[ComponentEditorProps(category: "GameScripted/Area Mesh", description: "")]
5
6class 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 {
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
35 }
36}
enum EAIGroupCombatMode ComponentEditorProps(category:"GameScripted/AI", description:"Component for utility AI system for groups")
void GenerateAreaMesh()
Generate area mesh based on its settings.
Faction GetParent()
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
IEntity GetOwner()
Owner entity of the fuel tank.
override void EOnInit(IEntity owner)
SCR_FieldOfViewSettings Attribute