Skip to content

Player crouched state resets after setPedAnimation() was called #462

@Einheit-101

Description

@Einheit-101

Describe the bug
As soon as you use setPedAnimation() while the player is crouched, he will stand up after finishing the animation. This bug now hits especially hard because custom animations open a new world for scripters.

To Reproduce
Steps to reproduce the behavior:

  1. Go to map editor, press F5 for testing
  2. Crouch the player
  3. Open freeroam menu with F1, open "anim" tab
  4. Apply any animation and stop it again
  5. Player will stand up after that

Expected behavior
The player should stay crouched, this bug makes it hard / impossible to play certain animations while crouching (For example "crouch_roll_r" will let the player roll right but he stands up, which is not what i want)

MTA Version 1.5.6-release-14378

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions