Replace fnc_veh_setFixServer with server_setHitpoints

This commit is contained in:
A Man
2022-03-22 13:04:38 +01:00
parent a7860b5b29
commit 637f1f4450
8 changed files with 29 additions and 54 deletions

View File

@@ -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;
};
};