These forums are CLOSED. Please visit the new forums HERE
Script hanging? |
|
Minato Martinez
Registered User
Join date: 13 Aug 2004
Posts: 18
|
09-12-2004 10:35
I've added a listen to a script to take verbal commands. However it at times processes the command several times over and, in the case of the commands which receive an audible response from the script, can spam any in the area. I originally thought this to be caused by lag, however it happens in empty sims. In fact, I just tested it in a sim by myself with a time dilation of 1 and Sim FPS of 800+ and it repeated nine times. Any theories as to the cause or possible solutions?
|
Malachi Petunia
Gentle Miscreant
![]() Join date: 21 Sep 2003
Posts: 3,414
|
09-12-2004 10:53
From the excellent LSL Wiki:
"If you call llListen again with the identical criteria, you create a duplicate filter and your listen() event handler will be called multiple times." And if you have an object that calls llListen() in state_entry() it will create a duplicate filter every time you pull if out of inventory unless you remove it or otherwise keep a duplicate from being made, e.g. CODE
|
Minato Martinez
Registered User
Join date: 13 Aug 2004
Posts: 18
|
09-12-2004 11:08
Worked like a charm. Thanks!
|