mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
7 lines
234 B
Plaintext
7 lines
234 B
Plaintext
private ["_vehicle","_value"];
|
|
_vehicle = _this select 0;
|
|
_value = _this select 1;
|
|
if (local _vehicle) then {
|
|
_currentDMG = _vehicle getHitIndex (_value select 0);
|
|
_vehicle setHitIndex[_value select 0, (_currentDMG - 0.5) max 0];
|
|
}; |