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 revisionPrevious revision
Next revision
Previous revision
put_player [2020/07/23 09:07] justinput_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".
Line 28: Line 28:
 <WRAP half column> <WRAP half column>
 ====Editor Node:==== ====Editor Node:====
-{{:wiki:put_player_node.png?nolink|}}+{{:put_player_node.png?nolink|}}
 </WRAP> </WRAP>
  
 <WRAP half column> <WRAP half column>
 ====Visual Demo:==== ====Visual Demo:====
-{{:wiki:put_player_demo.gif?nolink|}}+{{:put_player_demo.gif?nolink|}}
 </WRAP> </WRAP>
 </WRAP> </WRAP>
put_player.txt · Last modified: 2021/10/30 20:18 by justin