2015-12-07 16:24:52 +00:00
|
|
|
/*
|
|
|
|
Author: Aaron Clark - EpochMod.com
|
|
|
|
|
|
|
|
Contributors:
|
|
|
|
|
|
|
|
Description:
|
|
|
|
repair object via hit index
|
|
|
|
|
|
|
|
Licence:
|
|
|
|
Arma Public License Share Alike (APL-SA) - https://www.bistudio.com/community/licenses/arma-public-license-share-alike
|
|
|
|
|
|
|
|
Github:
|
|
|
|
https://github.com/EpochModTeam/Epoch/tree/master/Sources/epoch_code/compile/vehicles/EPOCH_client_repairVehicle.sqf
|
|
|
|
*/
|
2016-04-08 20:21:46 +00:00
|
|
|
params ["_vehicle","_value"];
|
2015-09-14 20:55:36 +00:00
|
|
|
if (local _vehicle) then {
|
|
|
|
_currentDMG = _vehicle getHitIndex (_value select 0);
|
|
|
|
_vehicle setHitIndex[_value select 0, (_currentDMG - 0.5) max 0];
|
2015-12-07 16:24:52 +00:00
|
|
|
};
|