User Tools

Site Tools


disable_container

This is an old revision of the document!


Disable Container


Disables access to an item container, prohibiting usage by the player until re-enabled.

disable_container(entity_id)
ArgumentDescriptionTypeRequired
entity_idEntity ID of the container to disable.StringYes

Use the Enable Container function to re-enable an item container that has previously been disabled.

Example:

disable_container("chest_01")

Results: The item container with an ID of “chest_01” will become inaccessible to the player until re-enabled.

Use the Disable Container function in your startup script to initially disable (i.e. “lock”) a treasure chest to prohibit access until the player obtains a key to unlock it with.


Editor Node:

disable_container.1511544969.txt.gz · Last modified: 2017/11/24 09:36 by justin