Get Current Inventory Slot
Returns the player's current zero-based main inventory slot, or -1 when no main inventory slot is active.
Diagram
Ports drawn from the source data: inputs left, outputs right, config inside.
How it's used
Structural overview — derived from this gate's ports, not
from tested behavior. Takes 2 wire inputs: Character (character), Exec (exec). Produces 2 outputs: Exec Out (exec), Slot (int).
Wire inputs
Wires you feed into the gate.
| Display name | Type | Tooltip |
|---|---|---|
| Character | character | No tooltip in source |
| Exec | exec | No tooltip in source |
Wire outputs
Wires the gate produces.
| Display name | Type | Tooltip |
|---|---|---|
| Exec Out (ExecOut) | exec | No tooltip in source |
| Slot | int | No tooltip in source |
Source details
- Brick asset
- B_1x1_Gate_Exec_Character_GetCurrentInventorySlot
- Component class
- BrickComponentType_Exec_Character_GetCurrentInventorySlot
- Kind
- exec
- Family
- Character
- Search tags
- selected equipped active quickbar hotbar index item
- Half size
- 5 × 5 × 2