NPC utility queries (#15843)

This commit is contained in:
metalgearsloth
2023-05-02 04:57:11 +10:00
committed by GitHub
parent ac5afa794e
commit ca07522c03
50 changed files with 873 additions and 246 deletions

View File

@@ -168,6 +168,9 @@ public sealed partial class NPCSteeringSystem : SharedNPCSteeringSystem
{
if (Resolve(uid, ref component, false))
{
if (component.Coordinates.Equals(coordinates))
return component;
component.PathfindToken?.Cancel();
component.PathfindToken = null;
component.CurrentPath.Clear();