touchPrim

From SmartBots Developers Docs
Bot PlaygroundCommands
Revision as of 16:33, 21 August 2016 by Gg (Talk | contribs) (Created page with "{{DISPLAYTITLE:{{SUBPAGENAME}}}} <onlyinclude>Touches an in-world object by its UUID</onlyinclude> <syntaxhighlight lang="javascript"> Bot.touch(uuid); </syntaxhighlight> {{...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Touches an in-world object by its UUID

Bot.touch(uuid);

Reference

This command accepts the following parameters:

Variable Required Description


Input:
uuid yes An UUID of the object to tough.
Output:
result This function does not return anything

Comment

It is important to remember that bot is able to touch objects it "sees":

  • after logging in, give bot about 30 seconds to load surrounding objects,
  • the same after teleporting,
  • nearby objects load faster than distant,
  • if you want bot to touch a distant object (say, another side of the sim), visit it first to "see and remember" it.

Examples

Touch a special test object in SmartBots office (the object is located at DuoLife/210/151/31):

Bot.touch("a6b4be6c-ca10-398f-846e-ea933cebfda2");