fixed car check - invalid variable name

This commit is contained in:
Glowbal 2015-08-14 22:00:55 +02:00
parent f45e4748de
commit 55ad706761

View File

@ -17,7 +17,7 @@ private ["_loadCar", "_loadHelicopter", "_loadTank", "_loadShip"];
params ["_unit"];
_loadCar = nearestObject [_unit, "car"];
if (_unit distance _vehicle <= MAX_LOAD_DISTANCE) exitwith {_vehicle};
if (_unit distance _loadCar <= MAX_LOAD_DISTANCE) exitwith {_loadCar};
_loadHelicopter = nearestObject [_unit, "air"];
if (_unit distance _loadHelicopter <= MAX_LOAD_DISTANCE) exitwith {_loadHelicopter};