inventory open script command is used to open the 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 or if the calling entity's inventory is already open.
Entities set to act as a shop using
setshop will have their inventory automatically sorted when opened with matching items being combined into stacks if possible. The player will also be restricted in how they can interact with the inventory.
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. The player can also close the inventory from the HUD or scripts can use
inventory close to manually close the inventory again.
Context: Any Entity