mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Changed tabs to 4 spaces
This commit is contained in:
@ -17,18 +17,18 @@ _vehicleUsage = [_this, 2, false, [false]] call BIS_fnc_Param;
|
||||
|
||||
_return = false;
|
||||
if (!_vehicleUsage) then {
|
||||
if (_item != "") then {
|
||||
if (_item in (items _unit)) then {
|
||||
_unit removeItem _item;
|
||||
_return = true;
|
||||
} else {
|
||||
if (_item in (assignedItems _unit)) then {
|
||||
_unit unassignItem _item;
|
||||
_unit removeItem _item;
|
||||
_return = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
if (_item != "") then {
|
||||
if (_item in (items _unit)) then {
|
||||
_unit removeItem _item;
|
||||
_return = true;
|
||||
} else {
|
||||
if (_item in (assignedItems _unit)) then {
|
||||
_unit unassignItem _item;
|
||||
_unit removeItem _item;
|
||||
_return = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
// TODO implement shared item functionality for with vehicles.
|
||||
|
||||
|
Reference in New Issue
Block a user