AI rotating and moving forward (running away)

Get the facing angle of your AI and just let it move toward that direction at certain unit length( a vector times a float), and periodically repeat the process so it just keep running? Might not be the best solution.

I won’t be surprised if there is a way to let the AI just keep moving. Say if it’s a character with controller, I can just hold down the D-pad or the left stick, and the character will keep going until I release the buttons. Maybe you just need a variable that determines the direction, and speed. Not sure if AIs are able to work this way.