Code:
if (c_trace(my.x,vector(player.x,player.y,player.z),IGNORE_ME | IGNORE_PASSABLE | USE_BOX) < 500 || c_trace(my.y,vector(player.x,player.y,player.z),IGNORE_ME | IGNORE_PASSABLE | USE_BOX) < 500  )

i use this to detect the distance between an actors and the player wink


Last edited by Azrael85; 10/01/08 14:32.