• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Help with animation
#1
Question 
please help me with the ApplyAnimation because when i want to do the animation it keeps me freeze even if i didn't set the ApplyAnimation to freeze player when animating
  Reply
#2
Code:
ApplyAnimation(playerid, animlib[], animname[], Float:fDelta, loop, lockx, locky, freeze, time, forcesync = 0);



freeze

If not equal, freezes the player at the end of the animation. 0



If you are facing an issue in undoing an animation, try using

Code:
ClearAnimations(playerid);
  Reply
#3
(2020-10-14, 12:49 PM)Worm Wrote:
Code:
ApplyAnimation(playerid, animlib[], animname[], Float:fDelta, loop, lockx, locky, freeze, time, forcesync = 0);



freeze

If not equal, freezes the player at the end of the animation. 0



If you are facing an issue in undoing an animation, try using

Code:
ClearAnimations(playerid);

will the other players see the animation of that player when the forcesync is off ?
  Reply
#4
If by " off " you mean false ( " 0 " ), then yes.
  Reply
#5
The 'forcesync' optional parameter, which defaults to 0, in most cases is not needed since players sync animations themselves. The 'forcesync' parameter can force all players who can see 'playerid' to play the animation regardless of whether the player is performing that animation. This is useful in circumstances where the player can't sync the animation themselves. For example, they may be paused.



https://www.open.mp/docs/scripting/funct...yAnimation
  Reply


Forum Jump: