User Tools

Site Tools


disable_container

Disable Container


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

Signature:

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

You can use the complementary 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 means of unlocking it.


Editor Node:

disable_container.txt · Last modified: 2021/04/21 18:58 by justin