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 [2020/07/23 09:23]
justin
put_player [2021/10/30 20:18] (current)
justin
Line 6: Line 6:
 ====Signature:==== ====Signature:====
 <code python> <code python>
-put_player(tile_id, direction)+put_player(tile, direction)
 </code> </code>
  
 ^Argument^Description^Type^Required^ ^Argument^Description^Type^Required^
-|tile_id|ID of the destination [[tile]].|[[String]]|Yes|+|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:====
 <code bauxite> <code bauxite>
-put_player("tile_portal02", EAST)+put_player("tile_portal02", EAST);
 </code> </code>
 //Results:// The [[player character]] is immediately repositioned onto the [[tile]] with an ID of "tile_portal02". //Results:// The [[player character]] is immediately repositioned onto the [[tile]] with an ID of "tile_portal02".
put_player.1595521386.txt.gz ยท Last modified: 2020/07/23 09:23 by justin