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}} {...") |
|||
Line 4: | Line 4: | ||
{{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}}--- | ||
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); |
} | } | ||
} | } |
Revision as of 18:13, 6 July 2016
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);
}
}