mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
15 lines
393 B
Plaintext
15 lines
393 B
Plaintext
// by commy2
|
|
|
|
private ["_vehicle", "_part", "_spareTrack"];
|
|
|
|
_vehicle = _this select 0;
|
|
_part = _this select 1;
|
|
|
|
_spareTrack = [player] call AGM_Repair_fnc_getNearestTrack;
|
|
|
|
("ToolKit" in items player || {!isNull ([_vehicle] call AGM_Repair_fnc_getNearestRepairer)})
|
|
&& {alive _vehicle}
|
|
&& {speed _vehicle == 0}
|
|
&& {!isNull _spareTrack}
|
|
&& {floor (3 * (_vehicle getHitPointDamage _part)) > 0}
|