These forums are CLOSED. Please visit the new forums HERE
Listen Question?? |
|
|
BioMolecular Chemistry
Registered User
Join date: 16 Apr 2008
Posts: 24
|
05-15-2008 20:23
What is the command to get an object to listen to chat and repeat in chat anything that said please??
|
|
Sindy Tsure
Will script for shoes
Join date: 18 Sep 2006
Posts: 4,103
|
05-15-2008 20:48
Something like this would do it..
CODE
|
|
Johan Laurasia
Fully Rezzed
Join date: 31 Oct 2006
Posts: 1,394
|
05-16-2008 00:10
Something like this would do it.. CODE
Although something like that is completely unfiltered, and horribly laggy. So be sure to save the handle of the listen... handle = llListen (0,"",NULL_KEY,"" ;and remove the listen when it's not in use... llListenRemove (handle); Also, if you're going to listen to say, just the owner, at least filter the owner of the object as such... handle = llListen (0,"",llGetOwner(),"" ;and dont forget to reset the script in an on_rez event when using llGetOwner() |
|
BioMolecular Chemistry
Registered User
Join date: 16 Apr 2008
Posts: 24
|
Thankyou People
05-16-2008 07:41
Thanks a lot
![]() |
|
Imnotgoing Sideways
Can't outlaw cute! =^-^=
Join date: 17 Nov 2007
Posts: 4,694
|
05-16-2008 07:45
This is me being half silly... But.....
llSay (0, from + " said '" + text + "'" ;- - - - - - - - - - - - - - - - - - - - - - - ^ What's the empty quotes for? (o.o) _____________________
Somewhere in this world; there is someone having some good clean fun doing the one thing you hate the most. (^_^)y
![]() http://slurl.com/secondlife/Ferguson/54/237/94 |
|
Haruki Watanabe
llSLCrash(void);
Join date: 28 Mar 2007
Posts: 434
|
05-16-2008 07:55
This would result in something like:
«Haruki Watanabe said 'this is my quote'» I usually enclose quotes or even names like that, so it is clear what comes from the object and what's the «quotation» ![]() P.S. total off-topic @ Imnotgoing Sideways: «are you chewing gum???» ![]() |
|
Sindy Tsure
Will script for shoes
Join date: 18 Sep 2006
Posts: 4,103
|
05-16-2008 08:02
Although something like that is completely unfiltered, and horribly laggy. ... Hey, with requirements as vague as he (he?) gave, he's not going to get a very good script.. ![]() - - - - - - - - - - - - - - - - - - - - - - - ^ What's the empty quotes for? (o.o) Look closely - it's not an empty quote.. Like Haruki said, it stuffs a ' at the end of the line. |
|
Pale Spectre
Registered User
Join date: 2 Sep 2005
Posts: 586
|
05-16-2008 08:34
Or, if you wanted double quotes:
llSay (0, from + " said \"" + text + "\"" ;And, to lose the colon: llSetObjectName(from); llSay (0, "/me said \"" + text + "\"" ;![]() |
|
Imnotgoing Sideways
Can't outlaw cute! =^-^=
Join date: 17 Nov 2007
Posts: 4,694
|
05-16-2008 08:49
This would result in something like: «Haruki Watanabe said 'this is my quote'» I usually enclose quotes or even names like that, so it is clear what comes from the object and what's the «quotation» ![]() P.S. total off-topic @ Imnotgoing Sideways: «are you chewing gum???» ![]() And, gum? Wha~? (o.o) My brain hurts. (>_< ![]() _____________________
Somewhere in this world; there is someone having some good clean fun doing the one thing you hate the most. (^_^)y
![]() http://slurl.com/secondlife/Ferguson/54/237/94 |