I'm having a hard time figuring this issue out.
I have an object in my scene that tracks the player. It has two states: moveToPlayer, and atPlayer. It is designed to move toward the player when over a specified distance away, and when it's within the specified distance it waits. When the player moves out of range it returns to it's moveToPlayer state and tracks it until its within range again.
The issue seems to be that it just decides to stop using the Move Towards action randomly. I have no idea why this is, but at some point it will be in the moveToPlayer state, and the Move Towards action will grey out, and while the debug info clearly notes that it's out of range from the player (and should be moving toward it in this state), it no longer moves.
Here is an image of the two states along with their specified actions:
You will notice that the Target Object in both states is set to a gameobject variable known as "activePlayer". My first thought was that this variable was being changed to something else, but this is not the case, (which means don't look there, it's not the answer).
The only other hypothesis I have is this: I set the speed at which the tracking object travels to the target object via a distance variable. I believe it's possible that at some point the target object will be at a distance of 0 to the player, and thus set the Max Speed variable of the Move Towards action becomes 0. The issue with this is that I have NO IDEA why this would "shut off" the action itself.
EDIT: I just tested this theory, it was not correct. The action "shuts off" when the target object is well away from the tracking object. Oh well!
Any help is much appreciated! Thanks in advance.