Fixed undefined variable script error

This commit is contained in:
Thomas Kooi 2015-01-18 16:31:40 +01:00
parent b76eabe1c4
commit 63c024bc79

View File

@ -15,6 +15,7 @@ _unit = _this select 0;
_item = _this select 1;
_vehicleUsage = [_this, 2, false, [false]] call BIS_fnc_Param;
_return = false;
if (!_vehicleUsage) then {
if (_item != "") then {
if (_item in (items _unit)) then {
@ -27,12 +28,8 @@ if (!_vehicleUsage) then {
_return = true;
};
};
} else {
_return = false;
};
[format["fnc_useItem: %1 | %2",_this,_return]] call FUNC(debug);
_return
} else
{
// TODO implement shared item functionality
};
};
// TODO implement shared item functionality for with vehicles.
_return;