Skip to content

Commit

Permalink
Merge pull request #2954 from gienkov/nozzleLogic
Browse files Browse the repository at this point in the history
nozzle additonal check condition
  • Loading branch information
thojkooi committed Feb 17, 2016
2 parents e31e20b + 8048b2e commit a8846e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions addons/refuel/functions/fnc_canConnectNozzle.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ params [["_unit", objNull, [objNull]], ["_target", objNull, [objNull]]];
private _nozzle = _unit getVariable [QGVAR(nozzle), objNull];

!(isNull _nozzle ||
{isEngineOn _target} ||
{(_target distance _unit) > REFUEL_ACTION_DISTANCE} ||
{!isNull (_target getVariable [QGVAR(nozzle), objNull])}) // TODO verify cant connect multiple fuel lines

0 comments on commit a8846e9

Please sign in to comment.