Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Touch Event for avatar attachments

Jamie Marlin
Ought to be working....
Join date: 13 May 2005
Posts: 43
06-09-2005 08:48
Hi all-

I am trying to build a script that goes into a listen state only when activated by a touch. It is implemented and works fine for 'loose' objects, but it seems to fail for objects attached to me. (I want to wear the object and then activate the command interface only when needed.) Anybody know what is going on? I know that I have seen attachments that react to a touch... is there some other event construct that provides the same information?

Thanks!
Michael Martinez
Don't poke me!
Join date: 28 Jul 2004
Posts: 515
06-09-2005 09:34
Should work fine, do you have the script in the primary (last linked) object? (because if not primary, then have to click on the prim with the script in it, instead of just the object)

I have made a few touch items that I wear and they work fine...
Jamie Marlin
Ought to be working....
Join date: 13 May 2005
Posts: 43
06-09-2005 10:39
That could be it... It is a multi-prim object and I just selected the whole object and dragged it the script. I will try the experiment again with a single prim attachment tonight.

Thanks!

Edited adition:

On second thought... the same object, when lying on the floor, behaves correctly. In other words, I click anywhere on it and the script responds. It just does not seem to work when attached. I will still retry the experiment tonight, though.

Thanks again,
Jamie
Moopf Murray
Moopfmerising
Join date: 7 Jan 2004
Posts: 2,448
06-10-2005 08:10
Not sure if this is your problem but touch on attachments is not available if you're in edit mode, at least that's what I've found.
_____________________
Jamie Marlin
Ought to be working....
Join date: 13 May 2005
Posts: 43
Answer found!
06-10-2005 11:33
You were both right! The script was not in the primary prim - I'm not sure how I managed that - and I was trying to rouch it with a right click / select touch. When I moved the script and used a left click, everything worked. Thanks for all the help!

-Jamie
Zindorf Yossarian
Master of Disaster
Join date: 9 Mar 2004
Posts: 160
06-11-2005 09:53
I love to see a problem solved. :)
_____________________
Badass Ninja Penguin: Killing stuff it doesn't like since sometime in May 2004.
Cernunnos Graves
Registered User
Join date: 21 Jun 2007
Posts: 1
06-21-2007 08:45
Hi!

Is it conceivable that some places block the ability that you can touch attached objects?
Milambus Oh
Registered User
Join date: 6 Apr 2007
Posts: 224
06-21-2007 09:00
No, but they cn turn scripts off which would stop the script from responding to Touch events.

Also there could be transparent prims blocking the click from reaching your object.