If you do not have any weapons and you're put in an unconscious state via the function setUnconscious, upon exiting this state you will be unable to stand up.
Description
Description
Details
Details
- Severity
- Minor
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 10 x64
- Category
- Anims
Steps To Reproduce
- Put down a unit as a player in the editor
- Add this to the init.sqf
[] spawn { removeAllWeapons player; removeAllAssignedItems player; player setUnconscious true; uiSleep 3.0; player setUnconscious false; };
The player will now be stuck in an animation where they can not get up. One workaround is to use player switchMove ""; but this results in an erratic and horrendously ugly animation.
The best workaround I have found thus far is to give the player a weapon just before you disable the unconscious state and then remove it. For example;
[] spawn { removeAllWeapons player; removeAllAssignedItems player; player setUnconscious true; uiSleep 3.0; player addWeapon "arifle_MXC_F"; player setUnconscious false; uiSleep 0.1; player removeWeapon "arifle_MXC_F"; };
The player will now play the proper animation to stand back up even whilst unarmed.