Hello!
So, the problem is that i have a ship design and i implemented some doors. (Thanks to your previous advice :D). Everything works great, i implemented AILerp script for movement with some bezier curve to make it a bit more natural.
gg uses a four way movement.
i recalculate the path each 0.5 seconds so there is PLENTY of time to recalculate it before npc reaches the door in my example.
So what happens? possible bug but maybe i just have to add something to the lerp script
I have two doors (one above one below). I close the top door and tell the AI to start moving from far right to far left. He has path like on the picture.
Then in middle of movement i close the doors with SetConnectionInternal (and it works cause he can’t go back or past it in any direction once closed, tried first closing and then selecting so he goes past and it won’t calculate path for him)
So once the doors are closed, aprox 0.5s later he recalculates the path and it disappears (the path from scene view) but he still continues all the way to the goal and ignores the blocked pathway (takes him like 2-3 more seconds to even get to the doors) (tho the path technically does not exist anymore)
I have attached components that are on the AI aswell. I have an option to send some signal to the player to recalculate the path. I suppose i can cancel the path somehow and give him new information? (this is why i suspect it might be a bug as player should be automatically stopped once he realises the path doesn’t exist anymore)
Thank you once again!
