mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
18 lines
442 B
Plaintext
18 lines
442 B
Plaintext
|
// by commy2
|
||
|
|
||
|
private ["_vehicle", "_wheels", "_spareWheel"];
|
||
|
|
||
|
_vehicle = _this select 0;
|
||
|
//_wheels = _this select 1;
|
||
|
|
||
|
_wheels = getArray (configFile >> "CfgVehicles" >> typeOf _vehicle >> "AGM_Wheels");
|
||
|
|
||
|
_wheels = [_wheels, {_vehicle getHitPointDamage _this == 1}] call AGM_Core_fnc_filter;
|
||
|
|
||
|
_spareWheel = [player] call AGM_Repair_fnc_getNearestWheel;
|
||
|
|
||
|
count _wheels > 0
|
||
|
&& {alive _vehicle}
|
||
|
&& {speed _vehicle == 0}
|
||
|
&& {!isNull _spareWheel}
|