Where am I wrong: In the Shooter-Template there is a relatively large function to revolve doors using pan-values and angle-calcualtions. I thing this is very complicated. To use a swinging door, I create a model that swings open and use the following limerick to open it.
action ThingAnimates () {
while(1)
{
my.skill1 += 3*time_step;
if (my.skill1 > 100) my.skill1 -= 100;
ent_animate(me,"Open",my.skill1,ANM_CYCLE);
c_updatehull(my,1);
wait(1);
}
}
c_updatehullk makes sure the ColDet stays precise. The BB works, I've checked using the f11-key. It's a breeze and I have made it, therefore I am VERY suspicious. Is there anything wrong with that approach?