It s part of a series of lsl scripts i m using for give some training courses on lsl.
Lsl locking sliding door script.
They ll rotate this varies sometimes they slide 90 degrees this number varies on an axis the axis varies which appears to make a door look closed.
Scripts run through actions that appear to lock a door if the door is constructed in the same way the script expects them to be constructed.
This simple door script uses three states default to set the initial rotation and open and closed to switch to that status.
Put script in door.
1 door lock script johng linden.
The code originated from an example in the linden scripting language reference but has been.
Adjustable sensor detecting range 1 20m.
3 to make this script open close an actual door the door should listen.
5 can control multiple doors if they all listen on the same channel.
4 for the following messages on the following chat channel.
Sliding door movement script lsl.
This sliding door script i created because i wanted to time my sliding door movements with the door sounds i had.
You need a configuration notecard called config main door script.
Note that the prim for the door needs to have path cut begin at 0 375 and end at 0 875 for this to work.
To make a sliding door that can lock just put the following code on the object you want to be your door.
Set door at closed position then reset script.
Touch to open or close or closes on timer.
Must be in the root prim of the door link set.
In the root prim you will need 3 rezzable objects simple cubes will do named open close and lock with in them the corresponding scripts see at the bottom of the page in order to play sounds at the right place.
Full automatic sliding door script with the following menu options.
Put this in aprim and touch it to open and close the remote door commands.
While you can use llsetpos for a sliding door you have no control at what speed it moves.
Choose your direction for open close.
It uses llmovetotarget to move the door with the door temporally turning phantom as it moves.