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).
This commit is contained in:
He-Man 2017-04-01 15:46:54 +02:00 committed by GitHub
parent ff13d929ec
commit c376ee2809

View File

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