NPC Spawner, not giving correct navigation_results

was having this issue after the most recent patch where my npcs would just not move and only returned interrupted. this was my previous code:

Result:=Nav.NavigateTo(T, ?MovementType:= movement_types.Running, ?ReachRadius:= MoveTargetReachedDistance, ?AllowPartialPath:=true)
OnResult(Result)

where OnResult is just:

    OnResult<protected>(Result:navigation_result):void=
        case(Result):
            navigation_result.Reached=>Print("Pathed Reached")
            navigation_result.PartiallyReached=>Print("Pathed PartiallyReached")
            navigation_result.Interrupted=>Print("Pathed Interrupted")
            navigation_result.Blocked=>Print("Pathed Blocked")
            navigation_result.Unreachable=>Print("Pathed Unreachable")

All npcs would just get stuck in an infinite “interrupted” loop, even though it worked prior to the patch. My solution that ended up working was simply adding Sleep like this:

Result:=Nav.NavigateTo(T, ?MovementType:= movement_types.Running, ?ReachRadius:= MoveTargetReachedDistance, ?AllowPartialPath:=true)
Sleep(0.0)
OnResult(Result)
1 Like