Pretty sure something like this
always:
-> set target X to player.X + cos(aimangle) * distance from player
-> set target Y to player.Y + sin(aimangle) * distance from player
I -think- this is what you're looking for, been a while since I used anything like this though