mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-10-05 15:49:34 +03:00
should fix no vehicle damage
This commit is contained in:
1 parent
737ce30b8c
commit
28e2c62c22
2 files changed
+5
-5
No files matched your search
@@ -6,14 +6,14 @@ ASSIGN DAMAGE HANDLER TO A UNIT
|
||||
|
||||
_this removeAllEventHandlers "HandleDamage";
|
||||
_this removeAllEventHandlers "Killed";
|
||||
_this addeventhandler ["HandleDamage",{ _this call fnc_veh_handleDam } ];
|
||||
_this addeventhandler ["Killed",{ _this call fnc_veh_handleKilled } ];
|
||||
_this addeventhandler ["HandleDamage",{ _this call vehicle_handleDamage } ];
|
||||
_this addeventhandler ["Killed",{ _this call vehicle_handleKilled } ];
|
||||
|
||||
if (isServer) then {
|
||||
_this removeAllEventHandlers "GetOut";
|
||||
_this removeAllEventHandlers "GetIn";
|
||||
_this addEventHandler ["GetOut", {[(_this select 0),"all",true] call server_updateObject;}];
|
||||
_this addEventHandler ["GetIn", {[(_this select 0),"all",true] call server_updateObject;}];
|
||||
_this addEventHandler ["GetOut", {[(_this select 0),"all"] call server_updateObject;}];
|
||||
_this addEventHandler ["GetIn", {[(_this select 0),"all"] call server_updateObject;}];
|
||||
};
|
||||
|
||||
//diag_log(format["%1: all EH reset for %2", __FILE__, _this]);
|
||||
Reference in new issue
Block a user