NPC MoveToPosition() never calls the callback function if the NPC was already standing on that position

Describe the bug:
NPC MoveToPosition() never calls the callback function if the NPC was already standing on that position

  • Calling MoveToPosition() twice triggers the callback exactly once

How do you cause this bug?

  • Call npc:MoveToPosition() with the current position of the NPC
npc:MoveToPosition(npc:GetPosition(), callbackFunc, 2)

Which platform: PC

Which input: keyboard + mouse

Your Crayta username: Vilva#9953

Game seen in (including “Hub” or “Editor for XYZ”): Editor for NPC Enemies

How regularly do you see this? (E.g. 2/3 times - please try 3 times if possible): 2/3 times

Time + date seen: 12.06.2022

Version number (found in Help tab in Settings): 0.f4.84.123388

Hey there @Vilva !

Always hard at work with these NPC’s! :stuck_out_tongue: Thanks for bringing this to our attention. I have opened up a ticket and our internal team shall investigate this issue further. :+1:

Oh, this caused me to loose about an hour of trying to understand what I am doing wrong :slight_smile:
The biggest problem with this is that it is not immediately clear why callback is not called, since this is kindof corner case situation. It looks like NPC most of the time behaves ok, except sometimes it happened to stand just in the right place and the whole chain of events becomes broken.

This seems to be fixed, duplicate of