Difference between revisions of "LlListen"

From Second Life Wiki
Jump to navigation Jump to search
Line 9: Line 9:
|func_footnote=If '''msg''', '''name''' or '''id''' are blank there are not used to filter incoming messages.<br/>
|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={{LSL DefineRow||{{LSLG|llListenRemove}}|}}
|also_functions={{LSL DefineRow||{{LSLG|llListenRemove}}|Removes a listen}}
{{LSL DefineRow||{{LSLG|llListenControl}}|}}
{{LSL DefineRow||{{LSLG|llListenControl}}|Enables/Disables a listen}}
{{LSL DefineRow||{{LSLG|llWhisper}}|}}
{{LSL DefineRow||{{LSLG|llWhisper}}|Sends chat limited to 10 meters}}
{{LSL DefineRow||{{LSLG|llSay}}|}}
{{LSL DefineRow||{{LSLG|llSay}}|Sends chat limited to 20 meters}}
{{LSL DefineRow||{{LSLG|llShout}}|}}
{{LSL DefineRow||{{LSLG|llShout}}|Sends chat limited to 100 meters}}
|also_events={{LSL DefineRow||{{LSLG|listen}}|}}
|also_events={{LSL DefineRow||{{LSLG|listen}}|}}
|also_tests
|also_tests
Line 20: Line 20:
|constants
|constants
|caveats=*On [[state]] change, all listens are removed automatically. It is a feature.
|caveats=*On [[state]] change, all listens are removed automatically. It is a feature.
*Only 64 listens can simultaneously be open in any single script.
**If this number is exceeded an error is shouted.
|specs
|specs
|cat1=Communications
|cat1=Communications

Revision as of 01:15, 26 February 2007

Summary

Function: integer llListen( integer channel, string name, key id, string msg );
0.0 Forced Delay
10.0 Energy

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.
  • Only 64 listens can simultaneously be open in any single script.
    • If this number is exceeded an error is shouted.

Examples

See Also

Events

•  listen

Functions

•  llListenRemove Removes a listen
•  llListenControl Enables/Disables a listen
•  llWhisper Sends chat limited to 10 meters
•  llSay Sends chat limited to 20 meters
•  llShout Sends chat limited to 100 meters

Deep Notes

Signature

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