Page 1 of 1
Animation Speed
Posted: Tue Nov 04, 2008 4:13 pm
by metal_head
I'm sure I have seen this somewhere,but now when I need i,I can't find it. What I need is to make make an animation faster only in the script. Why? Because I can't get one of my enemies animation fast enough (it's a SMD import from a model).
Re: Animation Speed
Posted: Tue Nov 04, 2008 4:32 pm
by bernie
Look in the documents its there.
Re: Animation Speed
Posted: Tue Nov 04, 2008 4:56 pm
by metal_head
Well,I know that the command
is for that,but I'm not sure how to use it

,and in the manual it's not explained (sorry,I should have started with this in first place). I tried,but didn't succeed with it. After the Animate order I put
but nothing changed.
Re: Animation Speed
Posted: Wed Nov 05, 2008 8:39 pm
by QuestOfDreams
Show us the whole order you are using it in ...

Re: Animation Speed
Posted: Wed Nov 05, 2008 10:07 pm
by metal_head
Here it is:
Code: Select all
monster_run_start[ ()
{
TargetPlayer();
UpdateEnemyVis(true);
UpdateTarget();
Animate(RUN);
AnimationSpeed(7);
self.ThinkTime = 0;
self.think = "monster_run";
self.ideal_yaw = enemy_yaw;
self.yaw_speed = YAWSPEED;
back_up = false;
attack_state = AS_NONE;
melee_time = time;
run_sound_time = time;
} ]
Re: Animation Speed
Posted: Thu Nov 06, 2008 10:04 am
by Jay
It's a low level order. AnimationSpeed(...) is a high level command. There must be a variable like self.animate_speed or somethign like that. You would set that variable to the number you would enter in AnimationSpeed(x) (i am using a computer at the university now, so i cannot look it up)
Normally one would use the AnimationSpeed(...) command in the setup order to set the animation speed for the actor one time (this requires that the animations fit to each other. I mean they all have to have the same speed in relation to each other)
Re: Animation Speed
Posted: Thu Nov 06, 2008 11:41 am
by QuestOfDreams
Actually it is both, a high level and low level method. However, I just noticed that they don't do the same thing ... the high level method is multiplying the current animation speed whereas the low level version is setting the animation speed to the given value. (I'll synchronize that in the next version ...).
Both should work tough, try calling AnimationSpeed before setting the animation ...
As Jay said, this command affects the speed of all animations.
Re: Animation Speed
Posted: Thu Nov 06, 2008 5:14 pm
by metal_head
Actually it is both, a high level and low level method.
Yeah,I saw it in the manual,but it's fine now,it works,when I tried it for the ifrst time,I haven't noticed the difference,but when I set a higher value,the difference could be seen. Thanks,guys!