Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Listen Name Filter

Silverdown Seetan
Registered User
Join date: 22 Aug 2008
Posts: 18
10-23-2008 12:35
llListen( integer channel, string name, key id, string msg );

I am trying to get the NAME filter to work as

/2 color blue
/2 rotate left

I have seen some scripts do that I am just not able to comprehend it, can anyone help?
Meade Paravane
Hedgehog
Join date: 21 Nov 2006
Posts: 4,845
10-23-2008 12:37
That's for who is generating the chat. Like, if you only wanted it to listen to you, you could give your avatar name there.

edit: in general, unless you only have a very small set of things that you want your script to hear, it's better to have an open listen (llListen (channel, "", "", "";)) and a bunch of "if" statements in your script that look at what it receives.
_____________________
Tired of shouting clubs and lucky chairs? Vote for llParcelSay!!!
- Go here: http://jira.secondlife.com/browse/SVC-1224
- If you see "if you were logged in.." on the left, click it and log in
- Click the "Vote for it" link on the left