NPC utility queries (#15843)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user