Baron Hauptmann
Just Designs / Scripter
Join date: 29 Oct 2005
Posts: 358
|
12-10-2005 19:25
I am just learning to script and apparently am missing out on something. Here is a minor problem I am having:
I have one script in a "button" with a touch_start event which then sends a llMessageLinked to two windows which are linked. Each window has a script attached to read the llMessageLinked and then changes the transparency. It works fine except . . .
When I touch the windows, that also changes them. Touching the window is like touching the button, even though the scripts do not have a touch_start event.
I do not have the scripts in front of me, but can add them if this is not clear.
Thanks, Brian
|
Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
|
12-10-2005 19:55
Make sure the button isn't the root prim. The root will be colored yellow; all other prims are colored white. The root is the last one you selected before linking.
A root prim with a touch script will make the script react if any portion of the object is touched. Since this is very likely your problem, unlink the object and relink it, selecting the window last.
Hope that helps!
_____________________
---
|
Baron Hauptmann
Just Designs / Scripter
Join date: 29 Oct 2005
Posts: 358
|
That's it.
12-11-2005 20:22
That is exactly the problem. For some reason, I assumed that it would be ideal for the button to be the root prim. I will change that and try again.
Thanks!
|