mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Only create pulse if their isn't any
This commit is contained in:
parent
86bf9f4262
commit
59c4485ef9
@ -15,7 +15,7 @@
|
||||
params ["_caller", "_target"];
|
||||
|
||||
_target setVariable [QGVAR(receiveCPR), true, true]; // Target receives CPR
|
||||
if(EGVAR(medical,CPRcreatesPulse)) then {
|
||||
if(EGVAR(medical,CPRcreatesPulse) && {_target getVariable [QEGVAR(medical,heartRate), 80] == 0}) then {
|
||||
_target setVariable [QEGVAR(medical,heartRate), round (30 + random [-5, 0, 5]) , true]; // And we have a (random) pulse
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user