Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Sliding Door

Andy Oto
Registered User
Join date: 5 Aug 2006
Posts: 12
11-20-2006 08:54
Hi
I need a sliding Door for a mobile Objekt,a normal sliding Door script is not good,if i move the Objekt ,the Door is away :-)

can someone help me.

thanks
Andy
Tiarnalalon Sismondi
Registered User
Join date: 1 Jun 2006
Posts: 402
11-20-2006 09:13
Will probably need more specifics on this to get some help.

How many prims are you wanting to use? Do you want the door to open in the middle or from one of the sides?

There are ways to make a 1 prim door that will open in the middle, but if this 'movable object' is a vehicle, then it will unsit everyone on the linkset due to the mass change involved.

You might also want to look at the wiki for llGetLocalPos and llSetLocalPos and such as this can be used in a linkset instead of the traditional llGetPos and llSetPos that most doors use today.
Andy Oto
Registered User
Join date: 5 Aug 2006
Posts: 12
11-20-2006 11:13
ok,thank you.
Andy Oto
Registered User
Join date: 5 Aug 2006
Posts: 12
11-24-2006 02:23
Sorry,but i cant this,everyone here you can help me?
Sterling Whitcroft
Registered User
Join date: 2 Jul 2006
Posts: 678
Just to clarify
11-24-2006 05:37
1. You have a VEHICLE, into which you'd like to put a SLIDING DOOR?
2. ..and the available doors detach from the vehicle, when the vehicle moves?
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
11-24-2006 07:19
NO.. I know the problem

The available "kit doors" in the world don't use local rotations and such. so if you link them to an object, and then rotate that object off the world axis, the door will get all screwy. not unlink exactly, but roam all over.

Swinging doors are one thing, because they just rotate in poristion.. bit a sliding door actually changes it's position.. so if you had a sliding door working on a car.. and then rotated that car 90 degrees, rather than sliding, the door would lift off the side of the van.

this is a "local pos" issue.
_____________________

● Inworld Store: http://slurl.eclectic-randomness.com
● Website: http://www.eclectic-randomness.com
● Twitter: @WinterVentura
Sterling Whitcroft
Registered User
Join date: 2 Jul 2006
Posts: 678
11-24-2006 08:01
How about using a rotating door that moves quickly by 180 degrees?
Andy Oto
Registered User
Join date: 5 Aug 2006
Posts: 12
11-24-2006 10:09
yes Winter this is realy the problem.
bucky Barkley
Registered User
Join date: 15 May 2006
Posts: 200
11-24-2006 10:58
Do a search for "Timeless Door". It is an excellent script by the user "Timeless Prototype", and it is here on the forums. The script records the open and closed positions of the door in the Name and Description fields.

Making a sliding door will basically be:

1) position the closed door and link it to a root prim (I use a small invisible box)
2) say "/door closed"
3) position the open state of the door (resize to the "slide open" state)
4) say "/door opened"

That should be it.
ed44 Gupte
Explorer (Retired)
Join date: 7 Oct 2005
Posts: 638
11-24-2006 14:08
http://www.lslwiki.com/lslwiki/wakka.php?wakka=LibraryTimelessLinkedDoor

The timeless door records position, rotation and size in the title and description of the door. These are wrt to a root object it is linked to so it should work well for a moving vehicle.

I have only used it for a rotating door app. I found that the title field (only 63 chars) overflowed and did not properly record size. If you were to not use the rotation bit (requires a bit of scripting) it should be ok for sliding door. You would calibrate the door in both the open and close positions.

hth

Ed