i everyone, i have the following question :
i have the enemy, and the enemy scan area use c_scan , if the enemy detect another enemy or the player it uses the c_trace instruction to check if it can shoot and hit the enemy or player.But if it(enemy) is turned left or right, or look up or down the ray of c_trace is not turn like the enemy. how can i do to turn the ray of c_trace.
and another problem is this: supouse the ray of c_trace is hit a window or something else. how can i get the angle of the hit.i need this angle to make the ray of c_trace continue in the right direction.how can i do this?

i study some codes like multitrace but i think i need more practice because i dont understand so much...:(
if anybody can help me i will be gratefull