3 static const string PORT_WAYPOINT_OUT =
"OutWaypoint";
6 protected static ref TStringArray s_aVarsOut = {
9 override TStringArray GetVariablesOut()
14 private AIWaypoint m_oCurrentWaypoint;
16 protected override bool TestFunction(AIAgent owner)
18 AIGroup group = AIGroup.Cast(owner);
25 AIWaypoint newWaypoint = group.GetCurrentWaypoint();
30 else if (newWaypoint != m_oCurrentWaypoint)
35 m_oCurrentWaypoint = newWaypoint;
37 if (m_oCurrentWaypoint)
38 SetVariableOut(PORT_WAYPOINT_OUT,m_oCurrentWaypoint);
40 ClearVariable(PORT_WAYPOINT_OUT);
45 protected override bool VisibleInPalette()
50 protected override string GetOnHoverDescription()
52 return "SCR_AIDecoOnWaypointChanged: Returns false if current waypoint is changed or is null";