Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Door Handle Movement On Linked Door Set

Dmitriy Gausman
Registered User
Join date: 16 May 2007
Posts: 132
09-25-2008 12:34
Hello-

I have a double door where both doors open at the same time. The right door uses llMessageLinked to talk to the left door.

I wanted to add door handles. so first I tried to link the handles to the door and they remained in the air where they were placed, not moving with the door on open and close (they did move as a linked set by edit/move the entire door system.

I looked in the forums here and saw that the handles should also be listening via llMessageLinked. So I added that to each handle. Now what happens, the doors remain in the air, not attached to the door, but rotate properly (though on their axis) and not with the door they are linked to.

These seem to be the position settings in each script.

rotation rot = llGetLocalRot();
rotation delta = llEuler2Rot(<0,0,PI/4>;);
rot = delta * rot;
llSetLocalRot(rot);

I must be missing a step whereby the handles know to stay attached to the door. Right now they are acting as mini doors

Any direction would be most appreciated.

Thank you.

Dmitriy
Cappy Frantisek
Open Source is the Devil!
Join date: 27 Oct 2006
Posts: 400
Try relinking the set
09-25-2008 13:03
When you linked the handles, the doors were already a linkset? If so, linking a prim to a linkset makes the new linkset act weird. Try unlink the whole linkset and relinking with the doors handles as a part of the set.

Worth a try!
Dmitriy Gausman
Registered User
Join date: 16 May 2007
Posts: 132
09-25-2008 17:50
I just tried that but it did not work.
Alicia Sautereau
if (!social) hide;
Join date: 20 Feb 2007
Posts: 3,125
09-25-2008 20:42
the thing is, using local rotation moves the prim independently of the link set, that`s how you can have 2 doors in the same link

if you would use a signle door script, you only need to worry about the root prim setting global rotation (usually an alpha prim) so that the rest of the link rotates along

i`ll send you a signle door script and a door script i`ve modded abit with llSay() for a double door set
please note that i`ve modded these scripts like 1.5 year ago and are based on old code (hope i still have it)


edit:
still have it and sent ti you
create 2 cubes and drop the script in to them
in 1 cube you`ll have to edit the direction so it rotates the other way

main difference is:
integer channel = 12701; this is the CHANNEL the doors listen on
integer dc_channel = 1; this is the command channel like: /1 lock

no idea what commands the door had or if it works at all, but you could allways add parts of other scripts for extra functions
Dmitriy Gausman
Registered User
Join date: 16 May 2007
Posts: 132
09-25-2008 21:01
Thank you very much Alicia. I just did a quick test and it looks great so far. I'll make some edits now and see what happens. I appreciate it very much. :-)