Here is some working code that will open and close the door, with animation.

Code:
action act_door()
{
   door = my;
	my.ambient = 10;
   
   {
      my.frame += .08*time_step; // gives 16/1.5 = 12 frames per second
      my.frame %= 20; // don't exceed the number of frames 
   	
     my.frame = 0; // set to start frame
while (1) { 
  my.frame += time_step; // 16 frames per second
  if(vec_dist(player1.x,my.x) < 325)//when the player get 225units from the doorit goes to c-move
  if (my.frame > 19) {my.frame = 20;}// interpolate to start frame
  else
  if (my.frame < 19) {my.frame = 0;}
  
  wait(1); 
} 
      
      
      
    
      	
      wait(2);
   }
}



renny


I have A7 Commercial .............. Now I just need to learn how to use it