Basic Door Question
|
Cutter Rubio
Hopeless Romantic
Join date: 7 Feb 2004
Posts: 264
|
08-07-2004 16:40
OK, I have the Basic Door script in a prim that I want to have swing open from the side like a normal door. When I touch it, it rotates about the prims vertical center, which I guess makes some degree of sense.
I can't for the life of me figure out how to get it to rotate at the edge of the prim. Anyone got any helpful pointers on this?
Cutter
_____________________
The early bird may get the worm, but the second mouse gets the cheese.
|
Kurt Zidane
Just Human
Join date: 1 Apr 2004
Posts: 636
|
08-07-2004 16:47
Create two primitives. One should be large (the door), the other should be small. (the door hinge). Select the primitives. Make sure the hinge is the last primitive selected. Link the primitive together. Put the door script inside, the door should now open and close from the side. ^.^
|
Ezhar Fairlight
professional slacker
Join date: 30 Jun 2003
Posts: 310
|
08-07-2004 17:03
Don't waste 2 prims for a simple door. Cut it so the rotation center becomes the edge. Or just use this script, which will do that for you.
|
Cutter Rubio
Hopeless Romantic
Join date: 7 Feb 2004
Posts: 264
|
08-08-2004 12:57
Thanks guys. Both of those tips work perfectly and I like the idea of savin a prim on each door. Problem solved 
_____________________
The early bird may get the worm, but the second mouse gets the cheese.
|
Samhain Broom
Registered User
Join date: 1 Aug 2004
Posts: 298
|
08-11-2004 08:08
From: someone Originally posted by Ezhar Fairlight Don't waste 2 prims for a simple door. Cut it so the rotation center becomes the edge. Or just use this script, which will do that for you. Ezhar, I tried the script that you posted on Wiki, and for some reason when I put the script in the wooden cube prim, it did not turn into a door. Were there any changes to LSL that may have prevented that script from working?
|
Hank Ramos
Lifetime Scripter
Join date: 15 Nov 2003
Posts: 2,328
|
08-11-2004 08:18
Did the wooden cube have the default texture? If it doesn't have the default texture, the code in the state_entry event handler of the defautl state won't retexture and shape the prim.
|
Ezhar Fairlight
professional slacker
Join date: 30 Jun 2003
Posts: 310
|
08-12-2004 09:26
The solution was much simpler and had something to do with the land options dialog 
|
Hank Ramos
Lifetime Scripter
Join date: 15 Nov 2003
Posts: 2,328
|
08-12-2004 09:30
o.O
|
Lecktor Hannibal
YOUR MOM
Join date: 1 Jul 2004
Posts: 6,734
|
08-13-2004 08:24
Very nice! Could someone explain to me how I could turn this into a castle drawbridge type door ? I just had scripting 101 last nite so go easy ;-p
_____________________
YOUR MOM says, 'Come visit us at SC MKII http://secondcitizen.net ' From: Khamon Fate Oh, Lecktor, you're terrible. Bikers have more fun than people !
|
Catherine Omega
Geometry Ninja
Join date: 10 Jan 2003
Posts: 2,053
|
08-13-2004 09:58
From: someone Originally posted by Lecktor Hannibal Very nice! Could someone explain to me how I could turn this into a castle drawbridge type door ? Turn the prim 90 degrees on the Y or Z axes?
|
Lecktor Hannibal
YOUR MOM
Join date: 1 Jul 2004
Posts: 6,734
|
08-13-2004 10:02
I was thinking of that but was sure it wasn't that easy. I thought the axis was declared in the script or something. Thanks I will try this.
_____________________
YOUR MOM says, 'Come visit us at SC MKII http://secondcitizen.net ' From: Khamon Fate Oh, Lecktor, you're terrible. Bikers have more fun than people !
|
Samhain Broom
Registered User
Join date: 1 Aug 2004
Posts: 298
|
08-13-2004 10:05
I meant to come in here and thank Ezhar Fairlight for her quick response in game. As it turned out, I was trying to make the door on my sisters plot before her arrival and did not have script running rights on her land. I was able to create there, but not to run scripts.
While I was working on this script, I decided to add some float variables so that someone could chose to create a door of a different size.
Thanks again Ezhar Fairlight!
_____________________
rm -rf /bin/ladden #beware of geeks bearing grifts
|