02:13 PM 15/10/2021
let teleporter = world.bricks.find(brick => brick.name === "Teleporter");
teleporter.touching((Player) => {
Player.setPosition(0, 0, 0);
})
You can put any numbers there instead of the 0s.
Read this for more information on the setPosition method: https://brickhill.gitlab.io/open-source/node-hill/classes/player.html#setposition
teleporter.touching((Player) => {
Player.setPosition(0, 0, 0);
})
You can put any numbers there instead of the 0s.
Read this for more information on the setPosition method: https://brickhill.gitlab.io/open-source/node-hill/classes/player.html#setposition
05:39 AM 16/10/2021
Quote from carlosabc , 02:13 PM 15/10/2021remember to do new Vector3(x,y,z) instead of just (x,y,z), otherwise it won't work
let teleporter = world.bricks.find(brick => brick.name === "Teleporter");
teleporter.touching((Player) => {
Player.setPosition(0, 0, 0);
})
You can put any numbers there instead of the 0s.
Read this for more information on the setPosition method: https://brickhill.gitlab.io/open-source/node-hill/classes/player.html#setposition