mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Fix damage on vehicles
Thx to mmrsz for letting me know
This commit is contained in:
@@ -44,8 +44,6 @@ if (_isNotOk) exitWith {
|
||||
//deleteVehicle _object;
|
||||
};
|
||||
|
||||
_object setVariable ["lastUpdate",diag_ticktime,true];
|
||||
|
||||
call {
|
||||
if (_type == "all") exitwith {
|
||||
[_object,_objectID,_class] call server_obj_pos;
|
||||
@@ -75,4 +73,4 @@ call {
|
||||
[_object,_objectID,_objectUID,_class] call server_obj_inv;
|
||||
};
|
||||
"";
|
||||
};
|
||||
};
|
||||
@@ -101,6 +101,7 @@ server_obj_dam = {
|
||||
//diag_log format["DEBUG: Monitoring: %1",_object];
|
||||
needUpdate_objects set [count needUpdate_objects, _object];
|
||||
_recorddmg = true;
|
||||
_object setVariable ["lastUpdate",diag_ticktime];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user