hi..

how can i make an object remove when it is eaten and how can i make it appear again after 15 sec.? i tried to use ent_remove and ent_create but the program is crashing. im trying to put it in this script:
Code:
if(froze == 1)
{
 set(my, PASSABLE);
 set(my, UNLIT | BRIGHT  | PASSABLE);   
 my.skin = 2;
 my.lightrange = 200;
 my.ambient = 100;
 my.blue = 200;

  while (vec_dist(player.x, my.x) > 80)  // wait until the player comes close
	{
          wait (1);
	}
  set(my, INVISIBLE);
  ent_remove(my);

 wait(-15);
 ent_create(ghost, vector(-608, 1072, 780), ghost1);			
 froze = 0;
 my.skin = 1;
 my.lightrange = 0;
 my.ambient = 0;
 my.state = 0;
}



@ this part of the code, what i want the enemy to do is to freeze for 15 sec. whenever the player gets an object. @ this point, the enemy can now be eaten by the player. and thats my problem, whenever the player ate the enemy it will be invisible and removed but it was never been created. frown

pls someone help me..thanks