User Tools

Site Tools


put_entity

Differences

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

Link to this comparison view

Next revision
Previous revision
put_entity [2017/04/27 07:32] – external edit 127.0.0.1put_entity [2021/10/30 20:17] (current) justin
Line 2: Line 2:
 ---- ----
  
-Instantly positions an object or character onto the specified tile.+Instantly positions an [[object]] or [[character]] onto the specified [[tile]].
  
 +====Signature:====
 <code python> <code python>
-put_entity("entity_id""tile_id")+put_entity(entitytarget_tile)
 </code> </code>
  
 ^Argument^Description^Type^Required^ ^Argument^Description^Type^Required^
-|"entity_id"|Description.|[[String]]|Yes| +|entity|[[Entity]] to reposition.|[[Entity]]|Yes| 
-"tile_id"|Description.|[[String]]|Yes|+|target_tile|Target [[tile]] onto which the [[entity]] will be placed.|[[Entity]], [[Coordinate]]|Yes| 
 + 
 +<WRAP center round info 100%> 
 +If you are changing the [[player_character|player's]] position, you can alternatively use the more convenient [[Put Player]] function which also lets you specify the [[player_character|player's]] [[cardinal_direction|direction]]. 
 +</WRAP>
  
 ====Example:==== ====Example:====
-<code python+<code bauxite
-put_entity("entity_id", "tile_id")+put_entity(entity["slippery_chest"], "chest_destination");
 </code> </code>
-//Results://+//Results:// The [[entity]] with an ID of "slippery_chest" is immediately repositioned onto the [[tile]] with an ID of "chest_destination".
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
-Use the **Put Entity** function to ...+Use the **Put Entity** function to move [[object|objects]] around the scene, for example to create the illusion that the [[player_character|player]] has pushed an obstacle out of their way.
 </WRAP> </WRAP>
  
Line 27: Line 32:
 <WRAP half column> <WRAP half column>
 ====Editor Node:==== ====Editor Node:====
-{{:wiki:put_entity_node.png?nolink|}}+{{:put_entity_node.png?nolink|}}
 </WRAP> </WRAP>
  
 <WRAP half column> <WRAP half column>
 ====Visual Demo:==== ====Visual Demo:====
-{{:wiki:put_entity_demo.gif?nolink|}}+{{:put_entity_demo.gif?nolink|}}
 </WRAP> </WRAP>
 </WRAP> </WRAP>
put_entity.1493303556.txt.gz · Last modified: 2017/04/27 07:32 by 127.0.0.1