sit
Fires when the bot sits on an object.
Bot.on("sit", function(event) { ... });Reference
This event comes with the following event object:
Variable | Description |
|---|---|
sitting |
|
object_uuid | The UUID of the object the bot is sitting on. |
position | An object |
Example
Bot.on("sit", function(event) {
if (event.sitting) {
console.log("I'm sitting on the object ", event.object_uuid);
} else {
console.log("I'm standing now");
}
});