should fix no vehicle damage

This commit is contained in:
[VB]AWOL
2013-08-27 15:42:33 -05:00
parent 737ce30b8c
commit 28e2c62c22
2 changed files with 5 additions and 5 deletions

View File

@@ -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]);

View File

@@ -1,5 +1,5 @@
/*
DayZ Epoch 1.0.1.9
DayZ Epoch 1.0.2
*/
SET FOREIGN_KEY_CHECKS=0;