Jump to content
mmods

Play Anmation

Recommended Posts

hi! i want my suspect to walk like is drunk but i don't know how to use the "suspect.Task.PlayAnimation()".

Share this post


Link to post
Share on other sites

If you want a ped to move using a certain movement animation in this case being drunk you should use the MovementAnimationSet property.

var animSet = new AnimationSet("move_m@drunk@verydrunk");
animSet.LoadAndWait();
ped.MovementAnimationSet = animSet;

 

here for future reference on how to use the task:

ped.Tasks.PlayAnimation(new AnimationDictionary("missbigscore2aig_3"),
    "wait_for_van_b", 1f, AnimationFlags.Loop);
Edited by NoNameSet

Share this post


Link to post
Share on other sites
2 hours ago, NoNameSet said:

If you want a ped to move using a certain movement animation in this case being drunk you should use the MovementAnimationSet property.


var animSet = new AnimationSet("move_m@drunk@verydrunk");
animSet.LoadAndWait();
ped.MovementAnimationSet = animSet;

 

here for future reference on how to use the task:


ped.Tasks.PlayAnimation(new AnimationDictionary("missbigscore2aig_3"),
    "wait_for_van_b", 1f, AnimationFlags.Loop);

And how i can find animations?

Edited by mmodsgtav
And how can i find animations?

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×