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
Next revisionBoth sides next revision
set_entity_model [2017/05/25 11:15] justinset_entity_model [2018/03/16 09:48] 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).+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.
  
 +====Signature:====
 <code python> <code python>
 set_entity_model(entity, model_name) set_entity_model(entity, model_name)
Line 10: Line 11:
 ^Argument^Description^Type^Required^ ^Argument^Description^Type^Required^
 |entity|Entity which will have its model replaced.|[[Entity]]|Yes| |entity|Entity which will have its model replaced.|[[Entity]]|Yes|
-|model_name|Description.|[[String]]|Yes|+|model_name|Name of the new model resource.|[[String]]|Yes|
  
 ====Example:==== ====Example:====
set_entity_model.txt · Last modified: 2021/04/21 18:50 by justin