Look at this:
Code:

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



EDIT: Sorry, at first I answered in German

Last edited by BlueDeath; 03/10/06 17:21.