1
0

fnc_canRefuel.sqf 282 B

1234567
  1. params["_vehicle"];
  2. if (!(driver _vehicle == player)) exitWith{false};
  3. if (!alive _vehicle) exitWith{false};
  4. if (isNull (_vehicle getVariable["RD501_mc_attached_large", objNull])) exitWith{false};
  5. if (_vehicle getVariable["RD501_mc_lastRefuelTick", -1] != -1) exitWith{false};
  6. true