User Tools

Site Tools


enable_container

Enable Container


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

Signature:

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.txt · Last modified: 2018/03/16 09:44 by justin