|
wudangtiger Arrow
Lao Hu Pengyou
Join date: 7 Jun 2006
Posts: 12
|
11-23-2006 04:57
A simple question I'm sure if someone could help: I have a couple of linked primsets and in each one of the prims is scripted (for example, one is a door that goes phantom when touched). However, when the touch command is used and the door is linked to the rest of the house, the whole house goes phantom! So : Question: how do I stop the scripted prim from effecting prims linked to it?
I have a similar issue using the standard rotation script from the standard Library. Put into a fountain, and the fountain base prim rotates, as well as the water inside it.
tnx. for any answers.
xxTiger
|
|
Tiarnalalon Sismondi
Registered User
Join date: 1 Jun 2006
Posts: 402
|
11-23-2006 05:33
Simplest answer: If you want the door to go phantom, it cannot be linked to the rest of the house or it will go phantom as well.
Also...on the fountain thing.. Easiest ways to keep the whole fountain from rotating would be to either A. Unlink the rotating parts from the base, B. put a reverse rotation in the base equal to that of the rest.
B is not perfect as there will still be some funny things going on.
|
|
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
|
11-23-2006 05:37
Basically it depends which prim is linked as root and where the script is as to what effect you will get. With your second example, the fountain, by placing the script in the base / root prim, you are telling the root prim to rotate. Becasue it is physically linked to the rest of the fountain , all of it will rotate.
|
|
Tiarnalalon Sismondi
Registered User
Join date: 1 Jun 2006
Posts: 402
|
11-23-2006 05:57
Thanks Newgate...didn't remember that last option...got up late and feel like crap today heh
|
|
wudangtiger Arrow
Lao Hu Pengyou
Join date: 7 Jun 2006
Posts: 12
|
11-24-2006 10:24
tnx to both for your answers. Still, I'm afraid i have no satisfaction. OK so there's a question of which is the root prim. Are you saying that the scripted prim should not be root? That would make sense ...
tnx.Tiger
|
|
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
|
11-24-2006 12:39
From: wudangtiger Arrow tnx to both for your answers. Still, I'm afraid i have no satisfaction. OK so there's a question of which is the root prim. Are you saying that the scripted prim should not be root? That would make sense ...
tnx.Tiger No I'm saying it all depends  However both the examples you have quoted would point to the script being in the root prim when they probably dont need to be. Somethign else to think about, You can use llSetLinkAlpha to set child alpha's by specifying the child prim number. This may be all you need to change. Look in the script for the call to llSetLinkAlpha. It probably specifies LINK_SET where you really want it to be a specific prim number or LINK_THIS if the script is in the child prim.
|