|
Rock Vacirca
riches to rags
Join date: 18 Oct 2006
Posts: 1,093
|
09-20-2007 08:11
Hi guys,
Sorry, I am at work, so I can't test this myself till this evening, but I am just so curious.
I have 3 prims, each one contains a script with a touch_start event in it that brings up a menu via the llDialog.
If I then link the 3 prims, and then touch the linked set, what will happen?
a) Three menus will pop up
b) One menu only, that of the root prim, the other two are ignored
c) Lots of smoke
d) None of the above
??
Rock
|
|
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
|
09-20-2007 08:12
If you have llPassTouches() set to FALSE, then the menu of the prim touched will show up. If the llPassTouches() command is set to TRUE, then the root-prim menu will appear.
_____________________
--AeonVox--Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music.
|
|
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
|
09-20-2007 10:17
llPassTouches(TRUE); will mean both menus will appear, as the child touch_start() event will still fire as well as the one in the root. However, only the child touched and the root, not all prims.
with llPassTouches(FALSE); only the touch_start events in the prim touched will fire, unless there are none, then the touch will be passed to the root.
|
|
Tiarnalalon Sismondi
Registered User
Join date: 1 Jun 2006
Posts: 402
|
09-20-2007 10:30
Additionally....you do not need to manually set llPassTouches to false...it is false by default without having to script it in. So unless somewhere in the script you've set it to true, you shouldn't need to do anything extra. I've seen the command llDetectedLink, though it doesn't appear to have a page in the wiki and I've not used it myself. If it does as I suspect and actually works, you could really just have one script in the root prim and have it do an llDetectedLink and process the touch event depending on which link # it states they touched.
|