Hello,
so iam trying to get my first ranged enemies into the game. While i managed to make them flee from the player, which works but not perfectly, i would like them to slowly move backwards from the player when they can.
iam not sure if i need a path while fleeing or moving backwards. what are the possible solutions to achieve this? Iam currently using the fleepath, but thats done while moving forward and rotating to the fleepath destination.
How can i make the AI move backwards away from current pathdestination and keep the aiming on to the player? Do i need to turn of the rotation in Richai?
Greetings & thank you for your time
Justin
Hello,
so iam trying to get my first ranged enemies into the game. While i managed to make them flee from the player, which works but not perfectly, i would like them to slowly move backwards from the player when they can.
iam not sure if i need a path while fleeing or moving backwards. what are the possible solutions to achieve this? Iam currently using the fleepath, but thats done while moving forward and rotating to the fleepath destination.
How can i make the AI move backwards away from current pathdestination and keep the aiming on to the player? Do i need to turn of the rotation in Richai?
EDIT:
Hey, so ive done some changes… i replaced richai with the follower entity. The follower entity is feeling great, turned of the rotation sync. and now while iam manually facing the player and simulate a rotation on spot, it works. the agent can now move backwards. now i only have to adjust the animations to work with it.
Greetings & thank you for your time
Justin
If you’re still trying to figure out how to make the agents keep their distance from the player you may want to check out this section on the local avoidance page about specifically avoiding players here.