Fix repair and salavage vehicles

Vehicles have to be updated directly after they got repaired and salvaged.
This commit is contained in:
AirwavesMan
2021-01-28 14:17:59 +01:00
parent 8e8727dd63
commit 6bbbacbb71
3 changed files with 7 additions and 6 deletions

View File

@@ -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";
};
}