SA-MP Forums Archive
[Tutorial] Fix "ApplyActorAnimation" (synchronization) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Tutorials (https://sampforum.blast.hk/forumdisplay.php?fid=70)
+---- Thread: [Tutorial] Fix "ApplyActorAnimation" (synchronization) (/showthread.php?tid=609600)



Fix "ApplyActorAnimation" (synchronization) - BossArturKA - 14.06.2016

In English not selenium. "FIX" of a bag is stated in an example.
Sense: Previously we load of animation at the player and a Actor.

PHP Code:
new ActorCJ; 
PHP Code:
public OnGameModeInit () {
    
ActorCJ = CreateActor(0, 0.0, 0.0, 3.0, 0.0);//We create the actor.
    
ApplyActorAnimation(ActorCJ, "DEALER", "Dealer_idle", 0, 0, 0, 0, 0, 0);//Previously we load animation to the actor.
    
ApplyActorAnimation(ActorCJ, "DEALER", "Dealer_idle", 4.1, 1, 0, 0, 0, 0);//We apply animation to the actor.
} 
PHP Code:
public OnPlayerConnect(playerid) {
    
ApplyAnimation(playerid, "DEALER", "Dealer_idle", 0.0, 0, 0, 0, 0, 0);//Previously we load animation to the player.
} 
Script: http://pastebin.com/76vhaiuT
Video: *********