— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
Disables access to an item container, prohibiting usage by the player until re-enabled.
disable_container(entity_id)
Argument | Description | Type | Required |
---|---|---|---|
entity_id | Entity ID of the container to disable. | String | Yes |
You can use the complementary Enable Container function to re-enable an item container that has previously been disabled.
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.