teleport
From SmartBots Developers Docs
Jump to: navigation, search
Teleports bot to specific location.
Bot.teleport(location);
Reference
This command accepts the following parameters:
| Variable | Required | Description
| |
|---|---|---|---|
| teleport: | |||
| location | yes | address of the new location
Format: Region name/X/Y/Z Use HOME instead of location to send the bot home (see examples below). | |
| Output: | |||
| Function returns a Promise with the following data: | |||
| success | bool | true if command completed successfully | |
| error | string | error string if command has failed | |
Examples
Teleport bot to SmartBots office:
Bot.teleport("DuoLife/128/128/20");
Teleport bot to its home location:
Bot.teleport("HOME");
- teleport