Right now, I'm using this code snippet but it returns a value whether or not I hit a wall
Code:
var wall;
wall = c_trace(my.x,vec_rotate(vector(100,0,0),my.pan),IGNORE_ME|IGNORE_PASSABLE|IGNORE_CONTENT|IGNORE_MODELS);


While we're at it, after using a c_trace, I want to store the pointer to hit. I can't use ENTITY* or something similar. Please what kind of variable can I store it in?