Try this:
result = c_trace(my.x, FrontRightPos.x, IGNORE_ME | IGNORE_MODELS | IGNORE_SPRITES | IGNORE_CONTENT);
if(result > 0)
{
RightWall = 1;
}
Didn't work. I've tried trace_hit, hit.texname (pretty much everything that follows the dot after 'hit'), I've been going through the manual and trying everything for 2 hours now. Everything I've tried either always gives a positive result or always gives a negative result, regardless of my actual position relative to a wall.