mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Fix if only HitPointDamage > 0
Important, when using SafeZones with VehicleGodmode and only HitPoint is damaged.
This commit is contained in:
parent
d8f58c0a03
commit
b2fbd6ef91
@ -54,7 +54,7 @@ _allHitPointsDamage = getAllHitPointsDamage _vehicle;
|
|||||||
};
|
};
|
||||||
} foreach (_allHitPointsDamage select 0);
|
} foreach (_allHitPointsDamage select 0);
|
||||||
if (_allRepaired) then {
|
if (_allRepaired) then {
|
||||||
if ((damage _vehicle) > 0) then {
|
if ((damage _vehicle) > 0 || {_x > 0} count ((getallhitpointsdamage _vehicle) select 2) > 0) then {
|
||||||
[_vehicle,["ALL",0],player,Epoch_personalToken] remoteExec ["EPOCH_server_repairVehicle",2];
|
[_vehicle,["ALL",0],player,Epoch_personalToken] remoteExec ["EPOCH_server_repairVehicle",2];
|
||||||
};
|
};
|
||||||
_pos = getposatl _vehicle;
|
_pos = getposatl _vehicle;
|
||||||
|
Loading…
Reference in New Issue
Block a user