16 void SetupWaypoint(IEntity waypointEntity)
18 AIWaypoint waypoint = AIWaypoint.Cast(waypointEntity);
22 waypoint.SetCompletionRadius(GetWaypointCompletionRadius());
23 waypoint.SetCompletionType(GetWaypointCompletionType());
28 void SetWaypointCompletionRadius(
float radius)
34 float GetWaypointCompletionRadius()
41 void SetWaypointCompletionType(EAIWaypointCompletionType
type)
47 EAIWaypointCompletionType GetWaypointCompletionType()
49 return EAIWaypointCompletionType.Any;
54 void SetWaypointPrefab(ResourceName prefab)
60 ResourceName GetWaypointPrefab()
71 override void SetupWaypoint(IEntity waypointEntity)
73 super.SetupWaypoint(waypointEntity);
76 if (!waypointScripted)
79 waypointScripted.SetPriorityLevel(GetWaypointPriorityLevel());
84 void SetWaypointPriorityLevel(
float priority)
90 float GetWaypointPriorityLevel()
98 class SCR_ScenarioFrameworkWaypointSmartAction : SCR_ScenarioFrameworkWaypointScripted
100 [
Attribute(
"", UIWidgets.EditBox,
"Static reference to entity with smart action")]
101 string m_sStaticEntityName;
104 override void SetupWaypoint(IEntity waypointEntity)
106 super.SetupWaypoint(waypointEntity);
109 if (!waypointSmartAction)
112 waypointSmartAction.m_sSmartActionTag = GetWaypointSmartActionTag();
113 waypointSmartAction.m_sStaticEntityName = m_sStaticEntityName;
118 void SetWaypointSmartActionTag(
string tag)
124 string GetWaypointSmartActionTag()
132 class SCR_ScenarioFrameworkWaypointEntity : SCR_ScenarioFrameworkWaypointScripted
134 [
Attribute(
"", UIWidgets.EditBox,
"Related entity")]
135 string m_sEntityName;
138 override void SetupWaypoint(IEntity waypointEntity)
140 super.SetupWaypoint(waypointEntity);
143 if (!waypointScriptedEntity)
146 waypointScriptedEntity.SetEntityName(m_sEntityName);
152 class SCR_ScenarioFrameworkWaypointTimed : SCR_ScenarioFrameworkWaypointScripted
155 override void SetupWaypoint(IEntity waypointEntity)
157 super.SetupWaypoint(waypointEntity);
163 waypointTimed.SetHoldingTime(GetWaypointHoldingTime());
168 void SetWaypointHoldingTime(
float time)
174 float GetWaypointHoldingTime()
182 class SCR_ScenarioFrameworkWaypointTimedDefend : SCR_ScenarioFrameworkWaypointTimed
185 override void SetupWaypoint(IEntity waypointEntity)
187 super.SetupWaypoint(waypointEntity);
193 waypointDefend.SetFastInit(GetFastInit());
198 void SetFastInit(
bool enabled)
212 class SCR_ScenarioFrameworkWaypointBoarding : SCR_ScenarioFrameworkWaypointTimed
215 override void SetupWaypoint(IEntity waypointEntity)
217 super.SetupWaypoint(waypointEntity);
220 if (!waypointBoarding)
223 waypointBoarding.SetAllowance(GetDriverAllowed(), GetGunnerAllowed(), GetCargoAllowed());
228 void SetDriverAllowed(
bool enabled)
234 bool GetDriverAllowed()
241 void SetGunnerAllowed(
bool enabled)
247 bool GetGunnerAllowed()
254 void SetCargoAllowed(
bool enabled)
260 bool GetCargoAllowed()