This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
set_entity_script [2017/05/18 15:42] – justin | set_entity_script [2018/03/16 09:49] – justin | ||
---|---|---|---|
Line 4: | Line 4: | ||
Sets the script of the specified tile or object. An empty string value can be specified for the script name in order to remove the entity' | Sets the script of the specified tile or object. An empty string value can be specified for the script name in order to remove the entity' | ||
+ | ====Signature: | ||
<code python> | <code python> | ||
set_entity_script(entity, | set_entity_script(entity, | ||
Line 19: | Line 20: | ||
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | 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 it has been opened. | + | 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. |
</ | </ | ||