Download better quality video source code at www slb.
Sl pay locking door script.
It hollows out to 90 the second prim.
For a more sophisticated door script check out the deluxe door on the lsl wiki site.
For a swimming pool put this into the root prim of a two prim swimming pool cover or door.
You need a configuration notecard called config main door script.
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.
Use the sample doors or add the scripts in your existing doors mesh or prim.
The script above contains the three possible states in which the door object can be i e.
Every lsl script works as a finite state machine fsm.
This doesn t need a special prim just size a normal cube into the size you want for the door and use the script that you will find below but read the rest of this first.
Initially closed open and closed as well as the events in red color which may trigger transition from one state to another.
Connectable to our optional multi groups server or casperlet plugin to buy separately.