ACE3/addons/repair/functions/fnc_getPostRepairDamage.sqf

12 lines
314 B
Plaintext
Raw Normal View History

2015-04-22 19:01:22 +00:00
// by comm2
#include "script_component.hpp"
private "_unit";
_unit = _this select 0;
if ([_unit, GVAR(engineerSetting_Repair) + 1] call FUNC(isEngineer)) exitWith {GVAR(repairDamageThreshold_Engineer)};
if ([_unit, GVAR(engineerSetting_Repair)] call FUNC(isEngineer)) exitWith {GVAR(repairDamageThreshold)};
1