Difference between revisions of "TotalControl for LSL/Events/BOT SETUP SUCCESS"
From SmartBots Developers Docs
(Created page with "{{DISPLAYTITLE:{{SUBPAGENAME}}}} <onlyinclude>Raised when Bot has been set successfully</onlyinclude> {{API Event Table}} {{API Variable Group|''event'' object properties}} {...") |
m (Gg moved page TotalControl LSL/Events/BOT SETUP SUCCESS to TotalControl for LSL/Events/BOT SETUP SUCCESS) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{DISPLAYTITLE: | + | {{DISPLAYTITLE:BOT_SETUP_SUCCESS}} |
<onlyinclude>Raised when Bot has been set successfully</onlyinclude> | <onlyinclude>Raised when Bot has been set successfully</onlyinclude> | ||
{{API Event Table}} | {{API Event Table}} | ||
{{API Variable Group|''event'' object properties}} | {{API Variable Group|''event'' object properties}} | ||
− | {{API Variable| | + | {{API Variable|str}} The name of the Bot |
− | {{API Variable|id}}--- | + | {{API Variable|id}} --- |
{{API Variables Table End}} | {{API Variables Table End}} | ||
Line 12: | Line 12: | ||
<syntaxhighlight lang="lsl"> | <syntaxhighlight lang="lsl"> | ||
− | link_message(integer | + | link_message( integer sender_num, integer num, string str, key id ) { |
/////////////////// Bot setup success event | /////////////////// Bot setup success event | ||
− | if( | + | if(num==BOT_SETUP_SUCCESS) { |
// Inform user | // Inform user | ||
llOwnerSay("AdminBot bot setup success:\n"+ | llOwnerSay("AdminBot bot setup success:\n"+ | ||
− | "Bot name: "+ | + | "Bot name: "+str); |
} | } | ||
} | } |
Latest revision as of 13:09, 12 May 2017
Raised when Bot has been set successfully
Reference
This event comes with the following event object:
Variable | Required | Description | |
---|---|---|---|
event object properties: | |||
str | The name of the Bot | ||
id | --- |
Example
link_message( integer sender_num, integer num, string str, key id ) {
/////////////////// Bot setup success event
if(num==BOT_SETUP_SUCCESS) {
// Inform user
llOwnerSay("AdminBot bot setup success:\n"+
"Bot name: "+str);
}
}