The method move.walk()
is used to make the bot walk to a specific position in the room. It requires four parameters: the x, y, and z coordinates of the destination, and the facing direction.
const { Facing } = require("highrise.sdk");
// Assuming you have defined the Highrise instance as "bot".
bot.on("chatCreate", async (user, message) => {
if (message === "walk") {
bot.move.walk(1, 0, 1, Facing.FrontLeft).catch(e => console.error(e));
}
});
Go Back: Bot Movements