From c376ee2809d8aea7208ad0136c63f66d83cd26c7 Mon Sep 17 00:00:00 2001 From: He-Man Date: Sat, 1 Apr 2017 15:46:54 +0200 Subject: [PATCH] Set damage to value, not to 0 All Scripts are using as params ['ALL',0]. With this change it is possible to set the damage to a value (0 for all actual scripts). --- .../compile/epoch_vehicle/EPOCH_server_repairVehicle.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/epoch_server/compile/epoch_vehicle/EPOCH_server_repairVehicle.sqf b/Sources/epoch_server/compile/epoch_vehicle/EPOCH_server_repairVehicle.sqf index 549c954c..92333f80 100644 --- a/Sources/epoch_server/compile/epoch_vehicle/EPOCH_server_repairVehicle.sqf +++ b/Sources/epoch_server/compile/epoch_vehicle/EPOCH_server_repairVehicle.sqf @@ -18,7 +18,7 @@ if !([_player, _token] call EPOCH_server_getPToken) exitWith{}; if (_player distance _vehicle > 20) exitWith{}; if ((_value select 0) isEqualTo "ALL") then { - _vehicle setDamage 0; + _vehicle setDamage (_value select 1); } else { if (local _vehicle) then { _vehicle setHitIndex _value;