> mahdi71
>
> Objects have X and Y values for their position
>
> So if you had an object Turret and an object Target, using the expression Shinkan suggested you'd do angle(Turret.X, Target.X, Turret.Y, Target.Y) to get the angle from Turret to Target.
>
> You'd then compare this angle to Turret.Angle to see if it was pointing in the right direction.
>
actually it should be angle(turret.x,turret.y,target.x,target.y)
Ok, so angle(Turret.X, Turret.Y, Target.X, Target.Y) as might be case-sensitive