Fix medical actions in vehicles

This commit is contained in:
icomrade
2014-01-09 01:05:54 -05:00
parent 37fe2e26ca
commit 84ebc488ab
8 changed files with 18 additions and 8 deletions

View File

@@ -34,6 +34,11 @@ while {r_doLoop} do {
if (r_interrupt) then {
r_doLoop = false;
};
if (vehicle player != player) then {
sleep 3;
r_doLoop = false;
_finished = true;
};
sleep 0.1;
};
r_doLoop = false;
@@ -47,7 +52,7 @@ if (_finished) then {
_display closeDisplay 0;
};
if (_unit == player) then {
if ((_unit == player) or (vehicle player != player)) then {
//Self Healing
_id = [player,player] execVM "\z\addons\dayz_code\medical\publicEH\medMorphine.sqf";
} else {