thnx,
but no solution
it doesnt work
i want to start a c_trace from a view entity
but the c_trace starts in the middle of the lvl
look here is the code i use
vec_set(trace_coords.x, vector(1500, 0, 0));
vec_rotate(trace_coords.x, laser_gun.pan);
vec_add(trace_coords.x, laser_gun.x);
if (c_trace(laser_gun.x, trace_coords.x, IGNORE_ME ) > 0) // hit something?
{
draw_line3d(my.x,NULL,100);
draw_line3d(my.x,COLOR_RED,100);
draw_line3d(target.x,COLOR_RED,100);
draw_point3d(target.x,COLOR_RED,100,3);
}
maybe i need to use vec_for_screen
but i do not know how