User Tools

Site Tools


put_player

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
put_player [2017/04/28 12:29]
justin
put_player [2018/03/16 09:46] (current)
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,​ direction) put_player(tile_id,​ direction)
Line 9: Line 10:
  
 ^Argument^Description^Type^Required^ ^Argument^Description^Type^Required^
-|tile_id|Description.|[[String]]|Yes| +|tile_id|ID of the destination tile.|[[String]]|Yes| 
-|direction|Description.|[[Constant]]|No|+|direction|Cardinal direction for the player to face towards.|[[Cardinal Direction]]|No|
  
 ====Example:​==== ====Example:​====
Line 16: Line 17:
 put_player("​tile_portal02",​ EAST) put_player("​tile_portal02",​ EAST)
 </​code>​ </​code>​
-//​Results://​+//​Results:// ​The player is immediately repositioned onto the tile with an ID of "​tile_portal02"​.
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
put_player.1493407775.txt.gz · Last modified: 2017/04/28 12:29 by justin