How to make AI Run Away from Player with BluePrint?

Hey there @anonymous_user_6d66d58b. So it took me some time but I think I figure it out.
Basically what I did was some basic math:

  • I get both player and AI current location and subtract;
  • Then I normalize that value and multiply with the AI max walk speed (I put a bigger value on the max walk speed cause I wanted the AI to actually run from the player and not just walk away);
    -Then connect the result with GetRandomPointInNavigableRadius;
    -Connect that to a Black Board Vector Variable that I created to set that random value;
    With works fine for me although I still want/need to create another state (like alert state) just to make sure is the right behavior.
3 Likes