Page 1 of 1
Teleport to selected position does not work correctly
Posted: Sun Mar 11, 2018 2:57 pm
by WIZ4
I want to teleport 2 tiles from the object. But I teleport far beyond the object. Why? The same thing if you teleport to the player
Code: Select all
/c game.player.teleport(game.player.selected.position.x+2)
Re: Teleport to selected position does not work correctly
Posted: Sun Mar 11, 2018 3:00 pm
by Bilka
You are not specifying a y position.
/c game.player.teleport({game.player.selected.position.x+2,game.player.selected.position.y}) should work
Re: Teleport to selected position does not work correctly
Posted: Sun Mar 11, 2018 3:01 pm
by WIZ4
Bilka wrote:You are not specifying a y position.
/c game.player.teleport({game.player.selected.position.x+2,game.player.selected.position.y}) should work
Yes, it work! Thank you