When the player is on the left of the enemies, they aim at the players head. When on the right they do the same.
I wanted to restrict the "cone" of degrees that it applies.
Using the following.
Set angle toward clamp(Player.ImagePointX(2),180,230) clamp(Player.ImagePointY(2),180,230)
However since using clamp, when the player is on the right, the angle it moves at is clockwise. I need it to be anticlockwise.
I tried using the rotate anticlockwise function but this will not do as it doesn't "aim" at an object.
Is there a way to say Set angle toward clamp(Player.ImagePointX(2),Anticlockwise180,230) clamp(Player.ImagePointY(2),Anticlockwise180,230) or some solution?