chriz Breck Posted May 30, 2011 Share Posted May 30, 2011 If a touch_start is in the root prim then it seems when ever you touch ANY part of the object cluster including the children that it triggers. Is there any way to avoid that so that only when I touch the prim in question does the event happen? That is without redeffining which prim is the rootprim. Link to comment Share on other sites More sharing options...
Void Singer Posted May 30, 2011 Share Posted May 30, 2011 two ways 1) move the script to the child prim you want it to target 2) check which prim was touched with llDetectedLinkNumber #1 has the benefit of only showing the touch cursor for the prim you want to actively receive touches, the drawback is that the script is moved out of the root, so more work to edit #2 has the benefit of staying in the root prim (and could potentially handle multiple such button prims), but has the drawback that the whole object will show the touch cursor. Link to comment Share on other sites More sharing options...
chriz Breck Posted May 30, 2011 Author Share Posted May 30, 2011 Thanks that was kinda what I thought. I just was checking before I went about adding extra scripts. Link to comment Share on other sites More sharing options...
Hector Greenspan Posted June 13, 2011 Share Posted June 13, 2011 Also, there just happens to be a function called llPassTouches() If you set this to FALSE, touches do not propagate through the object in question. Can often save adding more scripts to an object! Link to comment Share on other sites More sharing options...
Innula Zenovka Posted June 13, 2011 Share Posted June 13, 2011 Hector Greenspan wrote: Also, there just happens to be a function called llPassTouches() If you set this to FALSE, touches do not propagate through the object in question. Can often save adding more scripts to an object! Are you sure about that? According to the wiki, it's so that a prim containing a touch event doesn't pass the touch back to the root as well as doing whatever its own script has to do with the touch. The wiki has the caveat, This has no effect (whether set TRUE or FALSE) from the root. Touches are always passed to the parent when there is no touch event script in the child, even if this is set (TRUE or FALSE) within another event in a child's script. If you want to block touches from a child , you must add a script with a touch event in the child. This creates a default no passes. https://wiki.secondlife.com/wiki/LlPassTouches Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now