|
Hg Beeks
llGetElement(80);
Join date: 13 Apr 2006
Posts: 134
|
07-27-2007 00:33
I was thinking of trying the step-mat style of doorway, where the user landing/standing on the mat would cause it to open. However, the collision_end is called as soon as the collision_start is, looping repeatedly, making it rather un-useful for this particular use. Am I just misusing it, or does the collision_end not actually wait until you stop standing on it?
|
|
Boss Spectre
Registered User
Join date: 5 Sep 2005
Posts: 229
|
07-27-2007 00:52
You are receiving several collisions in sequence. You might try using a timer to detect when you haven't received any collisions in a while, then close the door.
What you describe is often done with llVolumeDetect() But in my experience even that fails to send the end sometimes, or it's getting lost somehow out of sequence, or perhaps if two av's step off at the same time. I haven't investigated what makes it fail.
|
|
Lyn Mimistrobell
(waiting)
Join date: 11 Jan 2007
Posts: 179
|
07-27-2007 03:08
I've worked on something similar and noticed that there wouldn't be a colission_end if I was standing still. However, walking will cause a stream of starts and ends. I set a timer on colission_end for about 10 seconds which is cleared again on colission_start. Not sure if that will help you, but it worked for me.
Lyn
|