4 for the following messages on the following chat channel.
Lsl locking sliding door script.
Second life wiki sliding door lsl create door.
Set door at closed position then reset script.
Touch to open or close or closes on timer.
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.
The code originated from an example in the linden scripting language reference but has been.
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.
You need a configuration notecard called config main door script.
Adjustable sensor detecting range 1 20m.
Must be in the root prim of the door link set.
To make a sliding door that can lock just put the following code on the object you want to be your door.
Sliding door movement script lsl.
Full automatic sliding door script with the following menu options.
While you can use llsetpos for a sliding door you have no control at what speed it moves.
1 door lock script johng linden.
5 can control multiple doors if they all listen on the same channel.
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.
3 to make this script open close an actual door the door should listen.
This sliding door script i created because i wanted to time my sliding door movements with the door sounds i had.
This simple door script uses three states default to set the initial rotation and open and closed to switch to that status.
Put this in aprim and touch it to open and close the remote door commands.
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.
It uses llmovetotarget to move the door with the door temporally turning phantom as it moves.
X is up down y is open close.