Difference between revisions of "LlListen"

From Second Life Wiki
Jump to navigation Jump to search
m (LSL llListen moved to LlListen: removing prefix)
Line 2: Line 2:
|return_type=integer
|return_type=integer
|return_text=that can be used to deactivate or remove the listen.
|return_text=that can be used to deactivate or remove the listen.
|p1_type=integer|p1_name=channel|p2_type=string|p2_name=name|p3_type=key|p3_name=id|p4_type=string|p4_name=msg
|p1_type=integer|p1_name=channel|p1_desc=any valid integer, positive or negative.
|p2_type=string|p2_name=name
|p3_type=key|p3_name=id
|p4_type=string|p4_name=msg
|func_desc=Sets a callback for '''msg''' on '''channel''' from '''name''' and '''id'''.
|func_desc=Sets a callback for '''msg''' on '''channel''' from '''name''' and '''id'''.
|func_footnote=If '''msg''', '''name''' or '''id''' are blank there are not used to filter incoming messages.
|func_footnote=If '''msg''', '''name''' or '''id''' are blank there are not used to filter incoming messages.<br/>
If '''id''' is an invalid key or a {{LSLG|NULL_KEY|null key}}, it is considered blank.
If '''id''' is an invalid key or a {{LSLG|NULL_KEY|null key}}, it is considered blank.
|also_functions=*{{LSLG|llListenRemove}}
|also_functions={{LSL DefineRow||{{LSLG|llListenRemove}}|}}
*{{LSLG|llListenControl}}
{{LSL DefineRow||{{LSLG|llListenControl}}|}}
*{{LSLG|llWhisper}}
{{LSL DefineRow||{{LSLG|llWhisper}}|}}
*{{LSLG|llSay}}
{{LSL DefineRow||{{LSLG|llSay}}|}}
*{{LSLG|llShout}}
{{LSL DefineRow||{{LSLG|llShout}}|}}
|also_events=*{{LSLG|listen}}
|also_events={{LSL DefineRow||{{LSLG|listen}}|}}
|also_tests
|also_articles
|notes
|constants
|caveats=*On [[state]] change, all listens are removed automatically. It is a feature.
|specs
|cat1=Communications
|cat1=Communications
|cat2=Chat
|cat2=Chat

Revision as of 02:11, 26 February 2007

Summary

Function: integer llListen( integer channel, string name, key id, string msg );

Sets a callback for msg on channel from name and id.
Returns an integer that can be used to deactivate or remove the listen.

• integer channel any valid integer, positive or negative.
• string name
• key id
• string msg

If msg, name or id are blank there are not used to filter incoming messages.
If id is an invalid key or a null key, it is considered blank.

Caveats

  • On state change, all listens are removed automatically. It is a feature.
All Issues ~ Search JIRA for related Bugs

Examples

See Also

Events

•  listen

Functions

•  llListenRemove
•  llListenControl
•  llWhisper
•  llSay
•  llShout

Deep Notes

Search JIRA for related Issues

Signature

function integer llListen( integer channel, string name, key id, string msg );