User Tools

Site Tools


enable_container

This is an old revision of the document!


Enable Container


Enables access to an item container that was previously disabled, allowing usage by the player for storing and retrieving items.

enable_container(entity_id)
ArgumentDescriptionTypeRequired
entity_idEntity ID of the container to enable.StringYes

You can use the complementary Disable Container function to disable an item container that is currently enabled.

Example:

enable_container("chest_01")

Results: The item container with an ID of “chest_01” will become accessible to the player.

Use the Enable Container function to enable (i.e. “unlock”) a treasure chest after a player obtains the appropriate means of accessing it, for example a key.


Editor Node:

enable_container.1511554435.txt.gz · Last modified: 2017/11/24 12:13 by justin