I have an EnemyAI code that can jump to moving platforms and such, and has an emergencyprotocol state for if the enemy is too high on the y-axis from his current waypoint down below. For some reason, when testing this, when the enemy goes to the emergency waypoint located on the moving platform, he will disconnect from the surface on the FIRST time going down, but will always succeed on the second time. I have already tried removing the redo on the stop state, and seeing what would happen with just the transition to the emergencyprotocol, and that made him disconnect every single time. I am somewhat stumped on how to solve this while still allowing the enemyAI to access his emergency waypoint to safely and logically get back down on his own.
I will show the code if someone responds and asks for it, as i do not feel like pasting like 500 lines of code.