Why do you need:
Code:
if (my.skill1 > 100) my.skill1 -= 100;

Using "ANM_CYCLE" will already make it cycle from 0 to 100 and then from 0 again.

I would do it this way:
Code:
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
}

BTW, I don't really think, that rotation the PAN angle of door, without any collusions is really slow or so laugh


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung