This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
put_player [2017/06/20 15:02] – justin | put_player [2021/10/30 20:18] (current) – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | Instantly positions the player onto the specified tile. | + | Instantly positions the [[player |
+ | ====Signature: | ||
<code python> | <code python> | ||
- | put_player(tile_id, direction) | + | put_player(tile, direction) |
</ | </ | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
- | |tile_id|ID of the destination | + | |tile|Target [[tile]] onto which the [[entity]] will be placed.|[[Entity]], [[Coordinate]]|Yes| |
- | |direction|Cardinal direction for the player to face towards.|[[Cardinal Direction]]|No| | + | |direction|[[Cardinal direction]] for the player to face towards.|[[Cardinal Direction]]|No| |
====Example: | ====Example: | ||
- | < | + | < |
- | put_player(" | + | put_player(" |
</ | </ | ||
- | // | + | // |
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | Use the **Put Player** function to instantly move the player to another location with the current map after interacting with a portal or teleportation device. | + | Use the **Put Player** function to instantly move the [[player |
</ | </ | ||
Line 27: | Line 28: | ||
<WRAP half column> | <WRAP half column> | ||
====Editor Node:==== | ====Editor Node:==== | ||
- | {{:wiki: | + | {{: |
</ | </ | ||
<WRAP half column> | <WRAP half column> | ||
====Visual Demo:==== | ====Visual Demo:==== | ||
- | {{:wiki: | + | {{: |
</ | </ | ||
</ | </ |