mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-18 09:32:02 +03:00
0.69 + 1.7.5.M1D15
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
private["_unit","_selection","_killer"];
|
||||
private["_unit","_hitPoints","_selection","_killer"];
|
||||
|
||||
_unit = _this select 0;
|
||||
_killer = _this select 1;
|
||||
@@ -9,15 +9,7 @@ _hitPoints = _unit call vehicle_getHitpoints;
|
||||
_unit setVariable [_selection, 1, true];
|
||||
} forEach _hitPoints;
|
||||
|
||||
dayzUpdateVehicle = [_unit, "damage", true];
|
||||
|
||||
if (isServer) then {
|
||||
if (allowConnection) then {
|
||||
dayzUpdateVehicle call server_updateObject;
|
||||
};
|
||||
} else {
|
||||
publicVariable "dayzUpdateVehicle";
|
||||
};
|
||||
["dayzUpdateVehicle",[_unit, "damage", true]] call callRpcProcedure;
|
||||
|
||||
_unit removeAllEventHandlers "HandleDamage";
|
||||
_unit removeAllEventHandlers "Killed";
|
||||
|
||||
Reference in New Issue
Block a user