teleport

From SmartBots Developers Docs
Bot PlaygroundCommands
Revision as of 19:04, 3 July 2016 by Phil (Talk | contribs) (Created page with "{{DISPLAYTITLE:{{SUBPAGENAME}}}} <onlyinclude>Teleports bot to specific location.</onlyinclude> <syntaxhighlight lang="javascript"> Bot.teleport(location); </syntaxhighlight>...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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");