|
Genesis Ronmark
Registered User
Join date: 14 Aug 2007
Posts: 42
|
02-16-2008 08:21
currently trying to figure this out, but any help along the way would be awesome.
I'm trying to make it so an object activates when you say something like /5 go, and have it play an animation and sound.
|
|
Lee Ponzu
What Would Steve Do?
Join date: 28 Jun 2006
Posts: 1,770
|
Brief tutorial...
02-16-2008 08:50
When someone chats /5 go, they say go on channel 5. In your script you need to listen on channel five, and check to see if what they say matches what you are listening for... Skeleton example: default { state_entry() { llListen( 5, "", "", "go"  ; } listen(integer c, string n, key k, string msg ) { //if you get here, the msg that you heard on channel 5 must be "go", so go ahead... // n is who said go, and k is there key //put go stuff here } If you want to listen for either "go" or "stop", you might need... listen( integer c, string n, key k, string msg ) { if ( msg == "go" ) { //do go stuff } else if ( msg == "stop" ) { //do stop stuff } etc etc etc }
_____________________
So many monkeys, so little Shakespeare.
|
|
Genesis Ronmark
Registered User
Join date: 14 Aug 2007
Posts: 42
|
02-16-2008 08:58
awesome, thanks.
|