Difference between revisions of "Usage/Initializing TotalControl"
From SmartBots Developers Docs
m |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{DISPLAYTITLE: Initializing | + | {{DISPLAYTITLE: Initializing TotalControl}} |
− | + | TotalControl for Bots has to know the Bot name you are going to use. | |
== Sending BOT_SETUP_SETBOT command == | == Sending BOT_SETUP_SETBOT command == | ||
Line 8: | Line 8: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | * (yes, the above example | + | * (yes, the above example is correct: you can pass a string value instead of a key) |
=== Access Code === | === Access Code === | ||
Line 16: | Line 16: | ||
== Determining Success == | == Determining Success == | ||
− | + | TotalControl for Bots will raise the event after BOT_SETUP_SETBOT | |
− | * [[ | + | * [[TotalControl for LSL/Events/BOT_SETUP_SUCCESS|BOT_SETUP_SUCCESS]] indicates that this bot can be used now, |
− | * [[ | + | * [[TotalControl for LSL/Events/BOT_SETUP_FAILED|BOT_SETUP_FAILED]] indicates that there were an error setting the bot. See [[Usage/Status_Codes|TotalControl Status Codes]] for details. |
{{NavMenu}} | {{NavMenu}} | ||
__NOTOC__ | __NOTOC__ |
Latest revision as of 05:24, 19 May 2017
TotalControl for Bots has to know the Bot name you are going to use.
Sending BOT_SETUP_SETBOT command
llMessageLinked(LINK_SET,BOT_SETUP_SETBOT,"My bot name","ACCESS CODE");
- (yes, the above example is correct: you can pass a string value instead of a key)
Access Code
To protect your bot from abusive scripters, you have to pass the bot access code while initializing - (read more about access code).
Determining Success
TotalControl for Bots will raise the event after BOT_SETUP_SETBOT
- BOT_SETUP_SUCCESS indicates that this bot can be used now,
- BOT_SETUP_FAILED indicates that there were an error setting the bot. See TotalControl Status Codes for details.