#include "..\script_component.hpp" /* * Author: Brett Mayson * Calculate the time to patch the wheel * * Arguments: * 0: Unit that does the patching * 1: Vehicle to patch * 2: Selected wheel hitpoint * * Return Value: * Patching time * * Example: * [unit, vehicle, "hitpoint"] call ace_repair_fnc_getPatchWheelTime * * Public: No */ params ["_unit", "_vehicle", "_hitPoint"]; // get current hitpoint damage private _hitPointDamage = (_vehicle getHitPointDamage _hitPoint) - GVAR(patchWheelMaximumRepair); ceil (_hitPointDamage / PATCH_WHEEL_STEP_TIME) * GVAR(patchWheelTime)