The script above contains the three possible states in which the door object can be i e.
Sl pay locking door script.
Easy to configure in few menu clicks 180 textures by selector.
An alternative is the sliding door.
Creating a door that opens and closes when you touch it.
Every lsl script works as a finite state machine fsm.
Initially closed open and closed as well as the events in red color which may trigger transition from one state to another.
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.
It hollows out to 90 the second prim.
Must be in the root prim of the door link set.
Use the sample doors or add the scripts in your existing doors mesh or prim.
Connectable to our optional multi groups server or casperlet plugin to buy separately.
For a more sophisticated door script check out the deluxe door on the lsl wiki site.
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.