mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Medical Engine - Prevent uncon units from ragdolling on death (#9762)
This commit is contained in:
parent
77a49a081a
commit
244bee4a61
@ -86,6 +86,12 @@
|
|||||||
if (!isNull objectParent _unit && {local objectParent _unit}) exitWith {
|
if (!isNull objectParent _unit && {local objectParent _unit}) exitWith {
|
||||||
[_unit] call FUNC(lockUnconsciousSeat);
|
[_unit] call FUNC(lockUnconsciousSeat);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Prevent second ragdoll of uncon units when they're killed
|
||||||
|
if (IS_UNCONSCIOUS(_unit) && !isAwake _unit) then {
|
||||||
|
_unit enableSimulation false;
|
||||||
|
[{_this enableSimulation true}, _unit, 2] call CBA_fnc_waitAndExecute;
|
||||||
|
};
|
||||||
}] call CBA_fnc_addEventHandler;
|
}] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
["CAManBase", "deleted", {
|
["CAManBase", "deleted", {
|
||||||
|
Loading…
Reference in New Issue
Block a user