nearby_avatars (HTTP Callback Event)

From SmartBots Developers Docs
HTTP APIBot Commandsset http callbackHTTP Bot Callback Events
Revision as of 18:20, 2 September 2020 by Gg (Talk | contribs) (Created page with "{{DISPLAYTITLE: nearby_avatars (HTTP Callback Event)}} <onlyinclude>Reports avatars nearby to the bot.</onlyinclude> {{API HTTP Parameters Table}} {{API HTTP Callback Vars|n...")

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

Reports avatars nearby to the bot.

Incoming and outgoing parameters

The input parameters is being sent to your HTTP script along with this event. Output parameters (if any) should be generated by your script.

Parameters Required Value
Input parameters:
action yes = nearby_avatars
bot_name yes the SL name of your bot
channel yes the unique bot id
cid yes internal HTTP connection identifier (you can ignore this value)
Input parameters specific for nearby_avatars:
status yes teleport status:
  • Start - teleport initialized
  • Progress - teleport in progress
  • Failed - teleport failed
  • Finished - teleport completed
  • Cancelled - teleport cancelled
avatars yes the nearby avatars (see below)
heading yes Bot's heading (direction it looks), degrees
location yes bot's current location, Region/X/Y/Z

Avatars list format

The avatars in a list are separated by a new line. Each avatar entry contains the following items:

  • UUID
  • full SL name
  • X
  • Y
  • Z

The items are separated by ";".

Example:

417732f0-a100-4e2d-a9bf-e381cfd12c3a;CuteGuide Resident;128;12;20


<< return back to HTTP Callback events