This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
disable_container [2017/11/24 09:27] – created justin | disable_container [2017/11/24 11:28] – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | Disables access to an item container, prohibiting usage by the player until re-enabled. | + | Disables access to an [[item container]], prohibiting usage by the player until re-enabled. |
<code python> | <code python> | ||
Line 10: | Line 10: | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
|entity_id|Entity ID of the container to disable.|[[String]]|Yes| | |entity_id|Entity ID of the container to disable.|[[String]]|Yes| | ||
+ | |||
+ | <WRAP center round info 100%> | ||
+ | You can use the complementary [[Enable Container]] function to re-enable an [[item container]] that has previously been disabled. | ||
+ | </ | ||
====Example: | ====Example: | ||
Line 15: | Line 19: | ||
disable_container(" | disable_container(" | ||
</ | </ | ||
- | // | + | // |
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | Use the **Disable Container** function in your startup script. | + | Use the **Disable Container** function in your [[startup script]] to initially disable (i.e. " |
</ | </ | ||