Put script in door.
Lsl locking sliding door script.
Choose your direction for open close.
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.
Set door at closed position then reset script.
Adjustable sensor detecting range 1 20m.
Touch to open or close or closes on timer.
While you can use llsetpos for a sliding door you have no control at what speed it moves.
3 to make this script open close an actual door the door should listen.
Admit name grants access ban name revokes access list shows admit ban lists forget name removes from admit and ban lists default admit anyone not specifically banned is admitted default ban anyone not specifically admitted is banned.
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.
It s part of a series of lsl scripts i m using for give some training courses on lsl.
Full automatic sliding door script with the following menu options.
Sliding door movement script lsl.
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.
4 for the following messages on the following chat channel.
To make a sliding door that can lock just put the following code on the object you want to be your door.
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.
Put this in aprim and touch it to open and close the remote door commands.
5 can control multiple doors if they all listen on the same channel.
Second life wiki sliding door lsl create door.
This simple door script uses three states default to set the initial rotation and open and closed to switch to that status.
The code originated from an example in the linden scripting language reference but has been.
X is up down y is open close.
It uses llmovetotarget to move the door with the door temporally turning phantom as it moves.
1 door lock script johng linden.