Dirk Donovan
Registered User
Join date: 5 Apr 2004
Posts: 13
|
12-24-2004 13:03
Does anyone know where i can get a sliding door script, ive looked for days now to no avail and im starting to pull my hair out....at least i would if i had any lol !!
|
Jesrad Seraph
Nonsense
Join date: 11 Dec 2004
Posts: 1,463
|
12-24-2004 13:21
You probably need to store the "open" location of the door somehow, or better yet store the total offset of the open position, in the form of a vector. Then you just need two states with each their own touch_start() event that use llMoveToPosition() and switch to the other state.
[Edit] And make the "open" state also initialize the timer to go back into "closed" (default) state after a few seconds.
Or use a repeatable sensor to auto-open and close the door ?
|
Kurt Zidane
Just Human
Join date: 1 Apr 2004
Posts: 636
|
12-24-2004 13:57
I would also store the state of the door in a permanent storage. Like the desc field. That way you can recompile the script with out the door getting all wacky.
|
Cutter Rubio
Hopeless Romantic
Join date: 7 Feb 2004
Posts: 264
|
12-24-2004 15:05
Go into the Script Library forum and look up the topic Fixed Steel Door Scripts. This is a sliding door script with locking functionality. You'll have to retexture it but it should work.
_____________________
The early bird may get the worm, but the second mouse gets the cheese.
|