User Tools

Site Tools


set_entity_model

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
Last revisionBoth sides next revision
set_entity_model [2018/03/16 09:48] justinset_entity_model [2020/05/03 10:45] justin
Line 2: Line 2:
 ---- ----
  
-Replaces the specified entity's model with another of the same resource type. The entity's script and properties will be kept (i.e. only the visual appearance will change). The model name is case-sensitive.+Replaces the specified [[entity|entity's]] model with another of the same resource type. The [[entity|entity's]] [[script]] and properties will be kept (i.e. only the visual appearance will change). The model name is case-sensitive.
  
 ====Signature:==== ====Signature:====
Line 10: Line 10:
  
 ^Argument^Description^Type^Required^ ^Argument^Description^Type^Required^
-|entity|Entity which will have its model replaced.|[[Entity]]|Yes|+|entity|[[Entity]] that will have its model replaced.|[[Entity]]|Yes|
 |model_name|Name of the new model resource.|[[String]]|Yes| |model_name|Name of the new model resource.|[[String]]|Yes|
  
 ====Example:==== ====Example:====
-<code python>+<code bauxite>
 set_entity_model(entity["bridge01"], "boards") set_entity_model(entity["bridge01"], "boards")
 </code> </code>
-//Results:// Replaces the model of the "bridge01" tile with the "boards" model.+//Results:// Replaces the model of the "bridge01" [[tile]] with the "boards" model.
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
-Use the **Set Entity Model** function as a way to drastically transform the appearance of a character, tile or object, for example a creature that has mutated or evolved.+Use the **Set Entity Model** function as a way to drastically transform the appearance of a [[character]][[tile]] or [[object]], for example a creature that has mutated or evolved.
 </WRAP> </WRAP>
  
set_entity_model.txt · Last modified: 2021/04/21 18:50 by justin