Hello brilliant ue devs.
I am pretty new to blueprints and lack a lot of common knowledge with using them. Currently, I’m creating a simple game for a school project and have run into a roadblock. I have been trying to create a script that will make the ai character move away from the player but stop after some distance. I figured out how to make it chase the player when in range and how to make it run away but I can’t figure how to do this specific action.
For more context about what I am trying to create: imagine an ai character walking in a straight path but when the player comes within a certain range the ai will move away and always keep a certain distance from the player., then it will remain on the path.
I am using Unreal Engine 4.27 and would appreciate any help, especially screenshots of bp scripts. Thanks a ton!