This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
put_entity [2017/04/27 07:32] – external edit 127.0.0.1 | put_entity [2021/04/21 18:40] – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | Instantly positions an object or character onto the specified tile. | + | Instantly positions an [[object]] or [[character]] onto the specified |
+ | ====Signature: | ||
<code python> | <code python> | ||
- | put_entity(" | + | put_entity(entity, tile_id) |
</ | </ | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
- | |" | + | |entity|[[Entity]] to reposition.|[[Entity]]|Yes| |
- | | "tile_id"|Description.|[[String]]|Yes| | + | |tile_id|ID of the destination [[tile]].|[[String]]|Yes| |
+ | |||
+ | <WRAP center round info 100%> | ||
+ | If you are changing the [[player_character|player' | ||
+ | </ | ||
====Example: | ====Example: | ||
- | < | + | < |
- | put_entity(" | + | put_entity(entity["slippery_chest"], "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. |
</ | </ | ||
Line 27: | Line 32: | ||
<WRAP half column> | <WRAP half column> | ||
====Editor Node:==== | ====Editor Node:==== | ||
- | {{:wiki: | + | {{: |
</ | </ | ||
<WRAP half column> | <WRAP half column> | ||
====Visual Demo:==== | ====Visual Demo:==== | ||
- | {{:wiki: | + | {{: |
</ | </ | ||
</ | </ |