Actor Animation - It does not work the first
#1

"ApplyActorAnimation" does not work the first time. You have to execute the function several times to apply animations.
Reply
#2

This is a known bug as it's the same for connected players, to counteract this, preload the animations.
Reply
#3

Not work.
HTML Code:
PreloadAnimLib(actorid, animlib[])
    {
        ApplyActorAnimation(actorid,animlib,"null",0.0,0,0,0,0,0);
    }
OnGameModeInit:
HTML Code:
ActorLS = CreateActor(246, 1932.1221,-1140.1854,13.4275, 0.0);
    PreloadAnimLib(ActorLS,"PED");
Reply
#4

Anyone?
Reply
#5

Put this in your script: http://pastebin.com/QsR6RagC

then

PreloadActorAnimations(ActorLS);


~ Credit to Emmet
Reply
#6

You don't need to preload the animation for the actor... think about it.. You need to preload it for PLAYERS that will SEE the actor.
Reply
#7

I think that's bug about streaming player-actor.

I have this when I type teleport command to actor and actor haven't got anim, but when I type cmd again - it's work.

Fix that please :f
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)