Use the sample doors or add the scripts in your existing doors mesh or prim.
Sl pay locking door script.
For a more sophisticated door script check out the deluxe door on the lsl wiki site.
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.
An alternative is the sliding door.
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.
Every lsl script works as a finite state machine fsm.
Easy to configure in few menu clicks 180 textures by selector.
For a swimming pool put this into the root prim of a two prim swimming pool cover or door.
Must be in the root prim of the door link set.
Download better quality video source code at www slb.
You need a configuration notecard called config main door script.
It hollows out to 90 the second prim.
Creating a door that opens and closes when you touch it.