Nevermind my original problem. I found out that it needed to be ent_remove, not just remove.
However, I get no errors but the code doesnt do what its supposed to. I suppose its not loopign right but I dont know why...
Heres the code.
Code:
 
var vec_dist_var=0;
var player_vector[3];

action vec_dist_test
{
while(1)
{
player_vector.x=my.x;
player_vector.y=my.y;
player_vector.z=my.z;
wait(1);
vec_dist_var=vec_length(player_vector);
wait(1);
IF(vec_dist_var>=100)
{
ent_remove(me);
return;
}
wait(1);
}
}



I put in numbers... and itll appear if its over 70, because thats how far the player is from the object, however, it I move away from it it stays like its not suuposed to. Any help?

Last edited by Towelie; 10/08/06 14:08.

Jimmy died, today, he blew his brains out into the bay, in the state of mind, its my own private suicide. A stitch in time saves nine... what the hell does that mean?!?