This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
put_player [2017/04/27 07:32] – external edit 127.0.0.1 | put_player [2018/03/16 09:46] – justin | ||
---|---|---|---|
Line 4: | Line 4: | ||
Instantly positions the player onto the specified tile. | Instantly positions the player onto the specified tile. | ||
+ | ====Signature: | ||
<code python> | <code python> | ||
- | put_player("tile_id", SOUTH) | + | put_player(tile_id, |
</ | </ | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
- | |"tile_id"|Description.|[[String]]|Yes| | + | |tile_id|ID of the destination tile.|[[String]]|Yes| |
- | | SOUTH|Description.|[[String]]|Yes| | + | |direction|Cardinal direction for the player to face towards.|[[Cardinal Direction]]|No| |
====Example: | ====Example: | ||
<code python> | <code python> | ||
- | put_player(" | + | put_player(" |
</ | </ | ||
- | // | + | // |
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | Use the **Put Player** function to ... | + | 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. |
</ | </ | ||