GetActorAnimation
#1

Hi,

It's possible to get current player actor animation? like GetPlayerAnimationIndex?
Reply
#2

Removed.
Reply
#3

As far as I'm aware, no. However, you must use ApplyActorAnimation every time you want to give an actor an animation... so you always have that information available to you. Just hook ApplyActorAnimation or create a function of your own.

Eg.
PHP код:
new actorlib[20];
new 
actoranimname[20];

ApplyActorAnimationEx(actoridanimlib[], animname[], Float:fDeltalooplockxlockyfreezetime)
{
    
format(actorlibsizeof(actorlib), "%s"animlib);
    
format(actoranimnamesizeof(actoranimname), "%s"animname);
    
// other stuff
    
return ApplyActorAnimation(actoridanimlibanimnamefDeltalooplockxlockyfreezetime);

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)