mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-04-17 09:53:21 +03:00
Fix medical actions in vehicles
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user