Page MenuHomeFeedback Tracker

Animation Bug When Unconscious Unarmed
Acknowledged, NormalPublic

Description

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.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Anims
Steps To Reproduce
  1. Put down a unit as a player in the editor
  2. 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.

Event Timeline

Dealman created this task.Feb 6 2017, 11:36 AM
Alwin claimed this task.Feb 8 2017, 4:05 PM
Alwin changed the task status from New to Reviewed.
Alwin changed the task status from Reviewed to Acknowledged.Feb 10 2017, 10:12 AM
Asaayu added a subscriber: Asaayu.Jun 21 2020, 7:32 AM