Skip to content

freeSlot beta ​

Function of @v12-engine/engine

ts
freeSlot: (entity: Entity) => number

The index of the first free slot of the entity's inventory, or -1 when it has none or no inventory