Try this:
Code:
result = c_trace(my.x, FrontRightPos.x, IGNORE_ME | IGNORE_MODELS | IGNORE_SPRITES | IGNORE_CONTENT);
	   	            if(result > 0)
	   	            {
	   	            	RightWall = 1;
   	            	}



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