User Tools

Site Tools


disable_container

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
disable_container [2017/11/24 09:36] justindisable_container [2021/04/21 18:58] (current) 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.
  
 +====Signature:====
 <code python> <code python>
 disable_container(entity_id) disable_container(entity_id)
Line 12: Line 13:
  
 <WRAP center round info 100%> <WRAP center round info 100%>
-Use the [[Enable Container]] function to re-enable an item container that has previously been disabled.+You can use the complementary [[Enable Container]] function to re-enable an [[item container]] that has previously been disabled.
 </WRAP> </WRAP>
  
 ====Example:==== ====Example:====
-<code python+<code bauxite
-disable_container("chest_01")+disable_container("chest_01");
 </code> </code>
-//Results:// The item container with an ID of "chest_01" will become inaccessible to the player until re-enabled.+//Results:// The [[item container]] with an ID of "chest_01" will become inaccessible to the player until re-enabled.
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
-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.+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.
 </WRAP> </WRAP>
  
disable_container.1511544969.txt.gz · Last modified: 2017/11/24 09:36 by justin