Difference between revisions of "TotalControl for LSL/Events/BOT EVENT LISTEN IM"
From SmartBots Developers Docs
(Created page with "{{DISPLAYTITLE:BOT_EVENT_LISTEN_IM}} <onlyinclude>Raised when Bot receives an instant message</onlyinclude> {{API Event Table}} {{API Variable Group|''event'' object properti...") |
|||
Line 13: | Line 13: | ||
<syntaxhighlight lang="lsl"> | <syntaxhighlight lang="lsl"> | ||
link_message( integer sender_num, integer num, string str, key id ) { | link_message( integer sender_num, integer num, string str, key id ) { | ||
− | /////////////////// Bot | + | /////////////////// Bot IM event |
if(num==BOT_EVENT_LISTEN_IM) { | if(num==BOT_EVENT_LISTEN_IM) { | ||
Revision as of 08:16, 20 May 2017
Raised when Bot receives an instant message
Reference
This event comes with the following event object:
Variable | Required | Description | |
---|---|---|---|
event object properties: | |||
str | username: message | ||
id | uuid of sender |
Example
link_message( integer sender_num, integer num, string str, key id ) {
/////////////////// Bot IM event
if(num==BOT_EVENT_LISTEN_IM) {
llOwnerSay("IM from bot: " + str);
}
}