Posts: 113
Threads: 30
Joined: Feb 2013
Reputation:
0
Hello, I need help
I want to make that a player holds an object with an animation. I got That
but everytime the player jumps or fires than the animations stop
How can i make so that the player can't do that
Posts: 437
Threads: 59
Joined: Oct 2011
Reputation:
0
Try to check for ClearAnimation when jump or fire
Posts: 113
Threads: 30
Joined: Feb 2013
Reputation:
0
But i don't to clearanimation when the player jump or Fires.
Posts: 1,767
Threads: 124
Joined: Mar 2010
What's the animation? If it's carrying animation, you can try applying special action:
Код:
25 - SPECIAL_ACTION_CARRY - Will apply a 'carrying' animation to the player and make them unable to sprint, jump or punch
Other way, there's none as I can't think of one. Maybe someone else will be able to help and correct me, if I am wrong.
edit://
Quote:
Originally Posted by [GF]Sasino97
Yes, in ApplyAnimation ( https://sampwiki.blast.hk/wiki/ApplyAnimation) there are a 'freeze' and a 'time' parameters. Set freeze to true, and time to the amount of time in milliseconds you want the player to be frozen (set 0 for indefinite)
|
I am late, but.. freeze parameter means that at the end of the animation player will NOT get back to the NORMAL ped standing animation. He will just get frozen at the end of the animation and he won't be able to move.