Inventory
36 functions. Also as Markdown for agents.
- BIS_fnc_addVirtualBackpackCargoAdd virtual backpacks to an object (e.g., ammo box). Virtual items can be selected in the Arsenal.
- BIS_fnc_addVirtualItemCargoAdd virtual items to an object (e.g., ammo box). Virtual items can be selected in the Arsenal.
- BIS_fnc_addVirtualMagazineCargoAdd virtual magazines to an object (e.g., ammo box). Virtual items can be selected in the Arsenal.
- BIS_fnc_addVirtualWeaponCargoAdd virtual weapons to an object (e.g., ammo box). Virtual items can be selected in the Arsenal.
- BIS_fnc_addWeaponAdds a weapon to the specified unit, with magazine classnames taken from the weapon's config (in CfgWeapons).
- BIS_fnc_arsenalFunction used for the Virtual Arsenal. The function features four different modes, each mode comes with its own parameters.
- BIS_fnc_basicBackpackDetermines basic backpack with no equipment present (ie empty).
- BIS_fnc_compatibleItemsReturn all compatible weapon attachments.
- BIS_fnc_deleteInventoryDelete loadout saved using BIS_fnc_saveInventory.
- BIS_fnc_exportInventoryExports unit's loadout as a String, also copies it to clipboard.
- BIS_fnc_getVirtualBackpackCargoGet virtual backpacks from an object (e.g., ammo box). Virtual items can be selected in the Arsenal.
- BIS_fnc_getVirtualItemCargoGet virtual items from an object (e.g., ammo box). Virtual items can be selected in the Arsenal.
- BIS_fnc_getVirtualMagazineCargoGet virtual magazines from an object (e.g., ammo box). Virtual items can be selected in the Arsenal.
- BIS_fnc_getVirtualWeaponCargoGet virtual weapons from an object (e.g., ammo box). Virtual items can be selected in the Arsenal.
- BIS_fnc_hasItemReturns true if object contains given item in inventory / cargo storage.
- BIS_fnc_invReturns inventory contents of given vehicle (unit). For vehicles it returns mounted gun and its ammo, not cargo weapons and ammo.
- BIS_fnc_invAddAdds item to inventory - checks if there is room for it. Checks if add was done by engine.
- BIS_fnc_invCodeToArrayConverts inventory code (used in configs) to array with numbers for weapons and magazines (and their counts).
- BIS_fnc_inventoryExistsCheck if loadout with given name exists.
- BIS_fnc_invRemoveRemoves from inventory. Given number of items. Returns actually removed items count.
- BIS_fnc_invSlotsReturns config inventory slots of given unit (total numbers of available slots in array).
- BIS_fnc_invSlotsEmptyReturns empty inventory slots of given unit.
- BIS_fnc_invSlotTypeReturns empty inventory slots of given unit.
- BIS_fnc_invStringReturns inventory contents of given vehicle (unit).
- BIS_fnc_isThrowableReturns true if given magazine is throwable.
- BIS_fnc_itemTypeReturns item category and type.
- BIS_fnc_limitAmmunitionLimits the number of magazines carried by individual unit. Each container (uniform, vest and backpack) can be limited separately or left untouched.
- BIS_fnc_limitItemsKeeps or removes unit's items (including NVGs and binocular/designator) based on probability user sets.
- BIS_fnc_limitWeaponItemsKeeps or remove unit's weapon attachments based on probability user sets. Apply for primary, secondary or handgun weapon separately.
- BIS_fnc_loadInventoryAdds a predefined loadout (either via `CfgVehicles`, `CfgRespawnInventory`, or a custom inventory saved via BIS_fnc_saveInventory) to a specified…
- BIS_fnc_removeVirtualBackpackCargoRemove virtual backpacks from an object (e.g., ammo box). Virtual items can be selected in the Arsenal.
- BIS_fnc_removeVirtualItemCargoRemove virtual items from an object (e.g., ammo box). Virtual items can be selected in the Arsenal.
- BIS_fnc_removeVirtualMagazineCargoRemove virtual magazines from an object (e.g., ammo box). Virtual items can be selected in the Arsenal.
- BIS_fnc_removeVirtualWeaponCargoRemove virtual weapons from an object (e.g., ammo box). Virtual items can be selected in the Arsenal.
- BIS_fnc_saveInventorySave unit's loadout.
- BIS_fnc_unitHeadgearRandomise headgear and facewear of a character.