User Tools

Site Tools


set_entity_script

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
Next revisionBoth sides next revision
set_entity_script [2017/05/13 13:16] justinset_entity_script [2017/05/18 15:53] justin
Line 14: Line 14:
 ====Example:==== ====Example:====
 <code python> <code python>
-set_entity_script(self, "script_name")+set_entity_script(entity["chest01", "empty_chest")
 </code> </code>
-//Results://+//Results:// The script for entity "chest01" is removed and replaced with the "empty_chest" script.
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
-Use the **Set Entity Script** function to ...+Use the **Set Entity Script** function to change the behavior of an object after it has been interacted with or to remove its script so it can no longer be interacted with, for example a door that the player cannot close once opened.
 </WRAP> </WRAP>
  
set_entity_script.txt · Last modified: 2022/05/07 14:24 by justin