_hax Posted July 3, 2009 Share Posted July 3, 2009 (edited) Hi, I'm using .net ScriptHook and I have little problem with animations. When I apply animation to player's ped (Player.Character) I can't walk around until animations finishes. I've seen peds in the street smoking cigarettes and walking around. But how to do the same trick with Niko? I tried Player.Character.Animation.Play(...) and Player.Character.Task.PlayAnimation(...) Any ideas? EDIT: solved void PlayAnimationOnMove(string animationSet, string animationName, Ped ped) { if (!Function.Call<bool>("HAVE_ANIMS_LOADED", new Parameter(animationSet))) { Function.Call("REQUEST_ANIMS", animationSet); } Function.Call("TASK_PLAY_ANIM_SECONDARY_UPPER_BODY", new Parameter(ped), new Parameter(animationName), new Parameter(animationSet), new Parameter(4.0f), new Parameter(0), new Parameter(0), new Parameter(0), new Parameter(0), new Parameter(-1)); } usage this.PlayAnimationOnMove("[email protected]", "hello", this.Player.Character); Edited July 6, 2009 by _hax Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now