Difference between revisions of "Listener Script"
Jump to navigation
Jump to search
Kireji Haiku (talk | contribs) (minor fix of example script and moved header into warning of breaking LL ToS) |
Omei Qunhua (talk | contribs) (Simplify) |
||
Line 6: | Line 6: | ||
<lsl> | <lsl> | ||
default | default | ||
{ | { | ||
state_entry() | state_entry() | ||
{ | { | ||
llListen(0, "", NULL_KEY, ""); | |||
} | } | ||
listen(integer channel, string name, key id, string message) | listen(integer channel, string name, key id, string message) | ||
{ | { | ||
llInstantMessage( | llInstantMessage(llGetOwner(), name + " said: '" + message + "'"); | ||
} | } | ||
} | } | ||
</lsl> | </lsl> |
Revision as of 13:16, 20 March 2014
Listener Script
Warning!
Use of this script without consent from those you listen to could constitute a breach of your agreement with Linden Labs (via the Terms of Service) to abide by the Community Standards of Second Life.
Put this in an object to listen to what people near the box are saying (like spying!) I am not responsible for people cheating on their partners, plots to kill people, etc.
<lsl> default {
state_entry() { llListen(0, "", NULL_KEY, ""); }
listen(integer channel, string name, key id, string message) { llInstantMessage(llGetOwner(), name + " said: '" + message + "'"); }
} </lsl>