mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-15 04:23:13 +03:00
0.69 + 1.7.5.M1D15
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
private["_unit","_selection","_strH","_dam","_total"];
|
||||
private["_unit","_selection","_strH","_damage","_total"];
|
||||
_unit = _this select 0;
|
||||
_selection = _this select 1;
|
||||
_damage = _this select 2;
|
||||
@@ -9,15 +9,8 @@ if (_selection != "" and local _unit) then {
|
||||
//player sidechat str _damage;
|
||||
_unit setVariable [_strH,_damage,true];
|
||||
if (_damage == 0) then {
|
||||
dayzUpdateVehicle = [_unit,"repair"];
|
||||
["dayzUpdateVehicle",[_unit,"repair"]] call callRpcProcedure;
|
||||
} else {
|
||||
dayzUpdateVehicle = [_unit,"damage"];
|
||||
};
|
||||
if (isServer) then {
|
||||
if (allowConnection) then {
|
||||
dayzUpdateVehicle call server_updateObject;
|
||||
};
|
||||
} else {
|
||||
publicVariable "dayzUpdateVehicle";
|
||||
["dayzUpdateVehicle",[_unit,"damage"]] call callRpcProcedure;
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user