Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setPedAnimation() "interrupt" and "time" has no effect in certain situations #953

Open
Einheit-101 opened this issue May 22, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@Einheit-101
Copy link

Describe the bug
When you use setPedAnimation() to set an animation that the player currently uses, you cant interrupt the animation even when "interrupt" is set to true and the animation will not stop when the time is over.

To reproduce

  1. Go to Editor
  2. Enable test mode (F5)
  3. When being idle, call this code:
    crun setPedAnimation(localPlayer, "ped", "idle_stance", 100, false, true, true, false, 100, false)
  4. The player will be frozen from now on. You cant interrupt this.

Expected behaviour
The player should return to normal state after 100ms (the time that is set in the code) and the animation should be interruptable.

Latest MTA nightly

Additional context
This bug only occurs when you try to set the same animation that the player is currently using. When being equipped with an AK-47, you have to set "idle_armed" animation and the same error occurs.

@Einheit-101 Einheit-101 added the bug Something isn't working label May 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant