Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

touch_end event not reliable?

Wednesday Grimm
Ex Libris
Join date: 9 Jan 2003
Posts: 934
04-22-2003 10:40
I have an object consisting of 9 linked cubes (say) with a script in the parent object that just whispers the result of llDetectedLinkNumber(0)

When I put the code in touch_start, everything works as I would expect.

When I put it in touch_end, some touches are not detected, some are reported twice, and touches are often with the wrong link number.

Is this a bug or some flaw in my understanding of touch_end?
_____________________
Sarcasm meter:
0 |-----------------------*-| 10
Rating: Awww Jeeze!
Ama Omega
Lost Wanderer
Join date: 11 Dec 2002
Posts: 1,770
04-22-2003 11:07
On my first using of llDetectedLinkNumber(0) I was getting the results you mentioned in a touch_start event handler. :-/ I recently switched to linked message passing because it seems more reliable.
Wednesday Grimm
Ex Libris
Join date: 9 Jan 2003
Posts: 934
04-23-2003 08:16
Yes, you are right Ama. At first I thought I was getting more accurate results with touch_start, but I tried it last night, and was not.

This seems like a fairly serious problem.
_____________________
Sarcasm meter:
0 |-----------------------*-| 10
Rating: Awww Jeeze!
Nada Epoch
The Librarian
Join date: 4 Nov 2002
Posts: 1,423
04-23-2003 09:01
I also ran into this problem, i thought it was just lag at first cause i was suffering some sever packet loss, but it happened even when I was running fine. Take two or three touches to get it to respond, on average.
_____________________
i've got nothing. ;)
Phil Metalhead
Game Foundry Leaɗer
Join date: 11 Mar 2003
Posts: 291
04-23-2003 23:13
it's a problem for me too. i've discovered that if you click and HOLD on an object for about 1/2 to 1 second, it'll register the touch just fine. not an elegant fix, but it will work for the time being...