User Tools

Site Tools


set_entity_script

Differences

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

Link to this comparison view

Next revisionBoth sides next revision
set_entity_script [2017/05/12 14:21] – external edit 127.0.0.1set_entity_script [2017/05/13 13:16] justin
Line 2: Line 2:
 ---- ----
  
-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's script.+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's script. The script name is case-sensitive.
  
 <code python> <code python>
-set_entity_script(self"script_name")+set_entity_script(entity, script_name)
 </code> </code>
  
 ^Argument^Description^Type^Required^ ^Argument^Description^Type^Required^
-|self|Description.|[[String]]|Yes| +|entity|Entity for which to update the script.|[[Entity]]|Yes| 
-"script_name"|Description.|[[String]]|Yes|+|script_name|Name of the new script.|[[String]]|Yes|
  
 ====Example:==== ====Example:====
set_entity_script.txt · Last modified: 2022/05/07 14:24 by justin