trace_mode = ignore_passable + ignore_me; you = null; trace(my.x,vector(my.x + 1000,my.y,my.z)); //Trace forward If (result > 0)&&(you == null) {//If that's true you hit the level/ground } If (result > 0)&&(you != null) {//If that's true you hit an entity