mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-04 15:22:53 +03:00
Replace fnc_veh_setFixServer with server_setHitpoints
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
private["_unit","_selection","_damage","_total"];
|
||||
_unit = _this select 0;
|
||||
_selection = _this select 1;
|
||||
_damage = _this select 2;
|
||||
|
||||
if (_selection != "" and local _unit) then {
|
||||
_unit setHit[_selection,_damage];
|
||||
//player sidechat str _damage;
|
||||
if (_damage == 0) then {
|
||||
[_unit,"repair"] call server_updateObject;
|
||||
} else {
|
||||
[_unit,"damage"] call server_updateObject;
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user