Difference between revisions of "TotalControl for LSL/Events/BOT EVENT LISTEN LOCAL CHAT"

From SmartBots Developers Docs
Jump to: navigation, search
(Correction)
 
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}} username: message
+
{{API Variable|str}} speaker name: message
 
{{API Variable|id}} uuid of speaker
 
{{API Variable|id}} uuid of speaker
  

Latest revision as of 17:04, 20 March 2019

Raised when Bot sees a message in local chat

Reference

This event comes with the following event object:

Variable Required Description
event object properties:
str speaker name: message
id uuid of speaker

Example

link_message( integer sender_num, integer num, string str, key id ) {
    /////////////////// Bot listen local chat event
    if(num==BOT_EVENT_LISTEN_LOCAL_CHAT) {

    	llOwnerSay("Local chat from bot: " + str);
    }
}