You need a configuration notecard called config main door script.
Sl pay locking door script.
Download better quality video source code at www slb.
Easy to configure in few menu clicks 180 textures by selector.
For a more sophisticated door script check out the deluxe door on the lsl wiki site.
The script above contains the three possible states in which the door object can be i e.
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.
Must be in the root prim of the door link set.
Initially closed open and closed as well as the events in red color which may trigger transition from one state to another.
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.
It hollows out to 90 the second prim.
Use the sample doors or add the scripts in your existing doors mesh or prim.
Creating a door that opens and closes when you touch it.