User Tools

Site Tools


put_entity

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
put_entity [2018/03/16 09:46]
justin
put_entity [2020/01/19 21:37] (current)
justin
Line 6: Line 6:
 ====Signature:​==== ====Signature:​====
 <code python> <code python>
-put_entity(entity_id, tile_id)+put_entity(entity, tile_id)
 </​code>​ </​code>​
  
 ^Argument^Description^Type^Required^ ^Argument^Description^Type^Required^
-|entity_id|ID of the entity to reposition.|[[String]]|Yes|+|entity|Entity ​to reposition.|[[Entity]]|Yes|
 |tile_id|ID of the destination tile.|[[String]]|Yes| |tile_id|ID of the destination tile.|[[String]]|Yes|
  
Line 19: Line 19:
 ====Example:​==== ====Example:​====
 <code python> <code python>
-put_entity("​slippery_chest",​ "​chest_destination"​)+put_entity(entity["​slippery_chest"​], "​chest_destination"​)
 </​code>​ </​code>​
 //​Results://​ The entity with an ID of "​slippery_chest"​ is immediately repositioned onto the tile with an ID of "​chest_destination"​. //​Results://​ The entity with an ID of "​slippery_chest"​ is immediately repositioned onto the tile with an ID of "​chest_destination"​.
put_entity.1521218810.txt.gz ยท Last modified: 2018/03/16 09:46 by justin