Arma 3 Scripting

Function in Inventory

BIS_fnc_invSlotType

Also available as Markdown and JSON, or read the original wiki page.

Description

Returns empty inventory slots of given unit.

Syntax

[class] call BIS_fnc_invSlotType

Parameters:

Returns: Array of Numbers - numbers representing slots taken by given item (one item can take more slots of same or different type), empty if type 0 or not found

Examples

Example 1

[currentWeapon player] call BIS_fnc_invSlotType;//Can return [1,0,0,0,0,0,0,0]

See also

BIS_fnc_invRemove · BIS_fnc_invCodeToArray · BIS_fnc_invString · BIS_fnc_invSlots · BIS_fnc_invSlotsEmpty · BIS_fnc_invAdd