Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkWaypointSuppress.c
Go to the documentation of this file.
1//------------------------------------------------------------------------------------------------
3class SCR_ScenarioFrameworkWaypointSuppress : SCR_ScenarioFrameworkWaypointTimed
4{
5 [Attribute(defvalue: "10", uiwidget: UIWidgets.Slider, desc: "Radius in m")]
6 float m_fCompletionRadius;
7
8 [Attribute(defvalue: "{ED8277F35B46B4AA}Prefabs/AI/Waypoints/AIWaypoint_Suppress.et", desc: "In Default, it will use specific prefab for each class, but here you can change it if you know what you are doing")]
9 ResourceName m_sWaypointPrefab;
10
11 [Attribute(defvalue: EAIWaypointCompletionType.All.ToString(), UIWidgets.ComboBox, "AI Waypoint Completion Type", "", ParamEnumArray.FromEnum(EAIWaypointCompletionType))]
12 EAIWaypointCompletionType m_eAIWaypointCompletionType;
13
14 [Attribute("0", UIWidgets.SpinBox, "Waypoint priority level", "0 2000 1000")]
15 float m_fPriorityLevel;
16
17 [Attribute("20", UIWidgets.EditBox, "Minimal time to hold the waypoint before it completes")]
18 float m_fHoldingTime;
19
20 [Attribute("1.5", UIWidgets.EditBox, desc: "Height of suppression volume above waypoint center")]
21 float m_fSuppressionHeight;
22
23 //------------------------------------------------------------------------------------------------
24 override void SetupWaypoint(IEntity waypointEntity)
25 {
26 super.SetupWaypoint(waypointEntity);
27
28 SCR_SuppressWaypoint waypointSuppress = SCR_SuppressWaypoint.Cast(waypointEntity);
29 if (!waypointSuppress)
30 return;
31
32 waypointSuppress.SetSuppressionHeight(m_fSuppressionHeight);
33 }
34
35 //------------------------------------------------------------------------------------------------
36 override void SetWaypointHoldingTime(float time)
37 {
38 m_fHoldingTime = time;
39 }
40
41 //------------------------------------------------------------------------------------------------
42 override float GetWaypointHoldingTime()
43 {
44 return m_fHoldingTime;
45 }
46
47 //------------------------------------------------------------------------------------------------
48 override void SetWaypointCompletionRadius(float radius)
49 {
50 m_fCompletionRadius = radius;
51 }
52
53 //------------------------------------------------------------------------------------------------
54 override float GetWaypointCompletionRadius()
55 {
56 return m_fCompletionRadius;
57 }
58
59 //------------------------------------------------------------------------------------------------
60 override void SetWaypointCompletionType(EAIWaypointCompletionType type)
61 {
62 m_eAIWaypointCompletionType = type;
63 }
64
65 //------------------------------------------------------------------------------------------------
66 override EAIWaypointCompletionType GetWaypointCompletionType()
67 {
68 return m_eAIWaypointCompletionType;
69 }
70
71 //------------------------------------------------------------------------------------------------
72 override void SetWaypointPriorityLevel(float priority)
73 {
74 m_fPriorityLevel = priority;
75 }
76
77 //------------------------------------------------------------------------------------------------
78 override float GetWaypointPriorityLevel()
79 {
80 return m_fPriorityLevel;
81 }
82
83 //------------------------------------------------------------------------------------------------
84 override void SetWaypointPrefab(ResourceName prefab)
85 {
86 m_sWaypointPrefab = prefab;
87 }
88
89 //------------------------------------------------------------------------------------------------
90 override ResourceName GetWaypointPrefab()
91 {
92 return m_sWaypointPrefab;
93 }
94}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
EDamageType type
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
SCR_FieldOfViewSettings Attribute