ACE3/TO_MERGE/agm/Logistics/functions/Repair/fn_canRemoveWheel.sqf

15 lines
340 B
Plaintext

// by commy2
private ["_vehicle", "_wheels"];
_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;
count _wheels > 0
&& {alive _vehicle}
&& {speed _vehicle == 0}