Code:
var wall;
wall = c_trace(my.x,vec_rotate(vector(100,0,0),my.pan),IGNORE_ME|IGNORE_PASSABLE|IGNORE_CONTENT|IGNORE_MODELS);



The reason this will not work is because you are tracing 100 quants on the x axis, rather than in front of the entity itself.

In order to trace in front of the entity, you will need to use some trig first, and store it inside a VECTOR, and trace from my.x, to the VECTOR you've created.

As old as this AUM is, it covers basic trig to achieve what you will need in order to get the correct direction for your trace.

Also, you can check to see if your trace has hit something, like this:

Code:
result = c_trace(my.x, trace_distance.x, FLAGS);
if(result > 0){beep();}//Hit something



Originally Posted By: from the manual

> 0 Distance to the hit polygon of the target or of the next obstacle in the way.
<= 0 No polygon was hit.


A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com