Implemented cpr failure function

This commit is contained in:
Zakant 2017-03-23 13:32:14 +01:00
parent d815bd8bdc
commit 918a62ebce

View File

@ -13,3 +13,9 @@
*/
#include "script_component.hpp"
params ["_caller", "_target"];
if(!(_target call EFUNC(common,isAwake)) || {_target getVariable [QEGVAR(medical,inCardiacArrest), false]) then {
_target setVariable [QEGVAR(medical,heartRate), 0, true];
};
_target setVariable [QGVAR(receiveCPR), false, true];
[_target] call FUNC(calculateBlood);