how to make a player to play a animation?
-
i was to trying to make my character(Game.Player.Character) to run through this animation
DictionaryName: "move_p_m_zero",
Animation: "run"but i tried using SET_ENTITY_ANIM to make it play, but it doesn't work, maybe i am doing something wrong
(and if you know how to make this animation go faster, i would appreciate to know)
-
@biel91 said in how to make a player to play a animation?:
i was to trying to make my character(Game.Player.Character) to run through this animation
DictionaryName: "move_p_m_zero",
Animation: "run"but i tried using SET_ENTITY_ANIM to make it play, but it doesn't work, maybe i am doing something wrong
(and if you know how to make this animation go faster, i would appreciate to know)
Game.Player.Character.Task.PlayAnimation("move_p_m_zero", "run");
There's a few overloaded methods that allows you to change the animation speed.
-
@KimonoBoy @biel91 You might also need to request the anim dictionary
-
@M8T said in how to make a player to play a animation?:
@KimonoBoy @biel91 You might also need to request the anim dictionary
Haven't looked at the source code, but isn't it already being requested by the method in scripthookvdotnet?
Edit: it's not. Thanks for the heads up.