Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Question

HulkHogan Hendrassen
Registered User
Join date: 19 Feb 2009
Posts: 10
07-30-2009 16:56
I am building a house and using the same script in different prims. However when I click the item I want it brings up two menus but the scripts have different animations in them. How would I fix it so I can only have it bring up that one menu rather then both. Maybe have it listen on different channels some how?
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
07-30-2009 17:23
I'm assuming that one script in in the root prim and the other in a child prim... and that you get the double menu only when you click the child prim?

2 simple solutions
A) don't have a touch script in the root prim (this will also prevent the whole build from being clickable), you can achieve this by either using a different prim as the root, or moving the script from the root to one of the child prims.

B) use llPassTouches( FALSE ) in the child prim script, and only it will activate (if it has a touch handler, otherwise pass touches is ignored)

ETA:
solved live... link message broadcaster needed filtering
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -