Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

no_sensor() only works with sensor(integer number)

Dytska Vieria
+/- .00004™
Join date: 13 Dec 2006
Posts: 768
07-24-2007 15:39
I have an object with a script that essential cleans things up that are rezzed by the same object. It runs llSensorRepeat() once a minute to see if AGENT is near, and if not, it issues commands to clean up the rezzed objects.

It works as it should, but =only= when I have event:

sensor(integer number)
{
}

in the script. I do not need to know if AGENT is near, only when AGENT is =not= near! But, if I remove the sensor(integer number) event, the no_sensor() event does not trigger!

I look in jira and do not find report of such a bug, maybe it is? Nothing in wiki says it is required.

Of course, the work around is to include the sensor(integer number) event, even though it does nothing.

Has anyone else experienced this?
_____________________
+/- 0.00004
Ravanne Sullivan
Pole Dancer Extraordinair
Join date: 10 Dec 2005
Posts: 674
07-24-2007 16:36
Note: Using the no_sensor event without a sensor event will cause the repeating sensor to stop. Use a "dummy" sensor event with nothing inside the brackets if you just want to react to something not being found.

http://www.lslwiki.net/lslwiki/wakka.php?wakka=llSensorRepeat
_____________________
Ravanne's Dance Poles and Animations

Available at my Superstore and Showroom on Insula de Somni
http://slurl.com/secondlife/Insula de Somni/94/194/27/
Dytska Vieria
+/- .00004™
Join date: 13 Dec 2006
Posts: 768
07-24-2007 18:59
Thanks! I was using the LSL Wiki in world from the Script -> Help menu and it did not mention that little note at all!
_____________________
+/- 0.00004
Ravanne Sullivan
Pole Dancer Extraordinair
Join date: 10 Dec 2005
Posts: 674
07-24-2007 23:28
I know, drove me crazy until I found it, the in world and official wiki are far from complete or accurate.
_____________________
Ravanne's Dance Poles and Animations

Available at my Superstore and Showroom on Insula de Somni
http://slurl.com/secondlife/Insula de Somni/94/194/27/