mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-15 04:23:13 +03:00
Fix repair and salavage vehicles
Vehicles have to be updated directly after they got repaired and salvaged.
This commit is contained in:
@@ -34,11 +34,11 @@ if (local _unit) then {
|
||||
_unit setHit [_selection, 0];
|
||||
_log = format["%1. setH!t[%2,0]", _log, _selection];
|
||||
if (!isServer) then {
|
||||
PVDZ_veh_Save = [_unit, "repair"];
|
||||
PVDZ_veh_Save = [_unit, "repair",true];
|
||||
publicVariableServer "PVDZ_veh_Save";
|
||||
_log = _log + ". Requesting server hive write";
|
||||
} else {
|
||||
[_unit, "repair"] call server_updateObject;
|
||||
[_unit, "repair",true] call server_updateObject;
|
||||
_log = _log + ". Writing to hive";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user