Hello I would like to ask for little help, I am not too advance with pathfinding behavior.
I have some enemies spawning in game and they are running to some object (call them object X) that can be eaten by these enemies. I am using pathfinding and it is ok but when enemy A eats one instance of object X and another enemy B has also that instance of object X like his own target of pathfinding he will run there even when that instance is no longer exists.
I would like to improve it like when enemies A and B have same instance of object X like target and one of these enemies eat it sooner then enemy B, then enemy B should change target to another existing instance of object X.
I hope it is enough understandable I am not too experienced in English :)