mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge pull request #4258 from acemod/reviveTimer
Clear reviveState when calling setUnconscious
This commit is contained in:
commit
83e78f1021
@ -34,6 +34,9 @@ if (_set isEqualTo (_unit getVariable ["ACE_isUnconscious", false])) exitWith {}
|
||||
|
||||
if !(_set) exitWith {
|
||||
_unit setVariable ["ACE_isUnconscious", false, true];
|
||||
if (_unit getVariable [QGVAR(inReviveState), false]) then {
|
||||
_unit setVariable [QGVAR(inReviveState), nil, true];
|
||||
};
|
||||
};
|
||||
|
||||
if !(!(isNull _unit) && {(_unit isKindOf "CAManBase") && ([_unit] call EFUNC(common,isAwake))}) exitWith{};
|
||||
|
@ -18,7 +18,3 @@
|
||||
params ["_caller", "_target","_className"];
|
||||
|
||||
[_target, false] call FUNC(setUnconscious);
|
||||
|
||||
if (_target getVariable [QGVAR(inReviveState), false]) then {
|
||||
_target setVariable [QGVAR(inReviveState), nil, true];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user