Unconc - dropping object handled in dragging

This commit is contained in:
PabstMirror 2015-03-26 16:32:44 -05:00
parent 6a71a04ad9
commit 559f0dbaea

View File

@ -28,11 +28,6 @@ if (!local _unit) exitwith {
[[_unit], QUOTE(DFUNC(setUnconscious)), _unit, false] call EFUNC(common,execRemoteFnc); /* TODO Replace by event system */
};
// Get rid of the object we are carrying, before we go unconscious.
if (!isNil QEFUNC(dragging,carryObj)) then {
[_unit, ObjNull, [0,0,0]] call EFUNC(dragging,carryObj);
};
// Set the unit in the unconscious state.
_unit setvariable ["ACE_isUnconscious", true, true];
_unit setUnconscious true;