prevent get out of vehicle phasing though objects

This commit is contained in:
[VB]AWOL
2013-11-01 10:08:55 -05:00
parent ad1c90ee36
commit af36a349de
4 changed files with 51 additions and 35 deletions

View File

@@ -12,7 +12,7 @@ _this addeventhandler ["Killed",{ _this call vehicle_handleKilled } ];
if (isServer) then {
_this removeAllEventHandlers "GetOut";
_this removeAllEventHandlers "GetIn";
_this addEventHandler ["GetOut", {[(_this select 0),"all"] call server_updateObject;}];
_this addEventHandler ["GetOut", {_this call server_antiWall; [(_this select 0),"all"] call server_updateObject;}];
_this addEventHandler ["GetIn", {[(_this select 0),"all"] call server_updateObject;}];
};