action actDoor(){
// reset skill for animation:
my.skill1 = 0;
// animation loop:
while(my.skill1 < 100){
// animations speed:
my.skill1 += 3 * time_step;
// animate the door:
ent_animate(my, "frame", my.skill1, ANM_CYCLE);
// wait one frame:
wait(1);
}
// as we've played the animation, fix the bounding box:
c_updatehull(my, 10); // insert the last animation frame, instead of 10
}