Difference between revisions of "TotalControl for LSL/Events/BOT SETUP SUCCESS"

From SmartBots Developers Docs
Jump to: navigation, search
Line 4: Line 4:
 
{{API Event Table}}
 
{{API Event Table}}
 
{{API Variable Group|''event'' object properties}}
 
{{API Variable Group|''event'' object properties}}
{{API Variable|str}}The name of the Bot
+
{{API Variable|str}} The name of the Bot
{{API Variable|id}}---
+
{{API Variable|id}} ---
  
 
{{API Variables Table End}}
 
{{API Variables Table End}}

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);
    }
}