Difference between revisions of "Listen"

From Second Life Wiki
Jump to navigation Jump to search
Line 8: Line 8:
|constants={{LSL Constants/Chat}}
|constants={{LSL Constants/Chat}}
|spec
|spec
|caveats
|caveats=*On [[state]] change all listens are released.
|examples
|examples
|helpers
|helpers

Revision as of 22:37, 5 March 2007

Description

Event: listen( integer channel, string name, key id, string message ){ ; }

Trigged by chat, use llListen to enable and filter

• integer channel
• string name
• key id
• string message
Channel Constant Description
DEBUG_CHANNEL 0x7FFFFFFF Chat channel reserved for script debugging and error messages, broadcasts to all nearby users.
PUBLIC_CHANNEL 0x0 Chat channel that broadcasts to all nearby users. This channel is sometimes referred to as: open chat, local chat and public chat.

Caveats

  • On state change all listens are released.
All Issues ~ Search JIRA for related Bugs

Examples

See Also

Functions

•  llListen
•  llListenControl
•  llListenRemove
•  llDialog
•  llWhisper Sends chat limited to 10 meters
•  llSay Sends chat limited to 20 meters
•  llShout Sends chat limited to 100 meters

Deep Notes

Signature

event void listen( integer channel, string name, key id, string message );