inventory close
Jump to navigation
Jump to search
The inventory close
script command is used to close any non-player inventory in the HUD for an entity. This command does not have any effect if the calling entity did not have an inventory created using inventory create
but it will close any opened non-player inventory.
The player can also close the inventory from the HUD and the inventory will automatically close once the player is 350 units away from the inventory owner unless the player is has the Telekinesis () spell active in which case the maximum distance is 900 units.
Closing the non-player inventory also resets the steal entity.
To only close the inventory if the player is stealing use closestealbag
.
Usage
inventory close
Context: Any Entity