Jump to content

[HELP] ANIMATION IS MOVING THE PED!


Recommended Posts

Posted

Hello, i set a animation for a ped but i need this ped stopped during the animation! How i can do it?

Here the code:

setPedAnimation(ped2, "shop", "SHP_Rob_Givecash")
	giveWeapon(l_5_0, 22)
	setPedRotation(l_5_0, 90)
	setPedWeaponSlot(l_5_0, 2)
	setPedAnimation(l_5_0, "shop", "rob_loop")
	setTimer(setPedAnimation, 4000, 1, l_5_0, false)
	setTimer(setPedAnimation, 90000, 1, ped2, "shop", "SHP_Rob_Handsup")
	setTimer(setPedAnimation, 300000, 1, ped2, false)
    setElementPosition(robmarker2, 3099.97, -3281.69, -0.5)

Thanks everybody!

Posted (edited)

Freeze the ped ...
Make the animation not interruptable ...

What do you mean with "stopped"?
Why should the ped move while doing the animation?

Edited by Bonus

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...