CBA_fnc_canAddItem

Description

Checks if unit has enough free space in inventory to store item.

Doesn’t take current unit load into account unlike canAdd command.

Parameters

_unitUnit <OBJECT>
_itemItem to store STRING
_countItem count <NUMBER> (Default: 1)
_checkUniformCheck space in uniform <BOOLEAN> (Default: true)
_checkVestCheck space in vest <BOOLEAN> (Default: true)
_checkBackpackCheck space in backpack <BOOLEAN> (Default: true)

Returns

True if unit has free space, false otherwise <BOOLEAN>

Examples

[player, "acc_flashlight"] call CBA_fnc_canAddItem
[player, "30Rnd_556x45_Stanag", 7, false, true, false] call CBA_fnc_canAddItem

Author

Dystopian

string used by format
Close