Add TeleportTo command and map region lookup by name

This commit is contained in:
Casper Warden
2017-12-16 06:42:41 +00:00
parent f4c0f82760
commit d278bc359b
21 changed files with 362 additions and 60 deletions

View File

@@ -184,6 +184,16 @@ function connect()
});
});
setTimeout(() => // TODO: This 5 second delay is a fudge. We need to wait for the eventqueue to start properly
{
bot.clientCommands.teleport.teleportTo('Izanagi', new nmv.Vector3([128, 128, 20]), new nmv.Vector3([0, 1.0, 0])).then(() =>
{
console.log("Teleport completed");
}).catch((err) => {
console.error(err);
});
}, 5000);
// When it's time to go home, call bot.close();
}).catch((error) =>
{