Now, it has been some time since I last worked with these circles, I think there was something about converting all coordinated into the first quadrant (multiply or subtract x*Pi), but I can't remember, however I remember the function:
x = r * cos alphay = r * sin alpha
I don't know if the game is set to degrees or radians though...
Well I tryed to use that in my scipt and got this:
set playeranglez to (player.getangle z)set playeranglex to (player.getangle x) set playerposx to (5 * cos playeranglez) set playerposy to (5 * sin playeranglez) shooter.moveto player playerposx playerposy 110 shooter.setangle x playeranglex shooter.FireWeapon WeapLaserRifle
This SHOULD in my mind, create a circle around the player with a radius of 5... HOWEVER in the second and fourth quadrant the point is behind the player, which means I've done something wrong, obviously... I did try to change the index of these quadrants, but to my supprise it gave the same result. That's what made me give up...
If anyone have another way to do this, or know what's wrong with my script I'd be VERY happy if anyone could tell me!
Kevin
