User Tools

Site Tools


put_player

This is an old revision of the document!


Put Player


Instantly positions the player character onto the specified tile.

Signature:

put_player(tile_id, direction)
ArgumentDescriptionTypeRequired
tile_idID of the destination tile.StringYes
directionCardinal direction for the player to face towards.Cardinal DirectionNo

Example:

put_player("tile_portal02", EAST);

Results: The player character is immediately repositioned onto the tile with an ID of “tile_portal02”.

Use the Put Player function to instantly move the player character to another location with the current map after interacting with a portal or teleportation device.


Editor Node:

Visual Demo:

put_player.1619055638.txt.gz · Last modified: 2021/04/21 18:40 by justin