S1 Door Scripts Manual


BLACK DRAGON STUDIOS
KRH S1 LINKED DOOR SYSTEM
BY KRAHAZIK DRAGON
JULY 2011 - VERSION 1.1

This is a simple modular door system which can be used in a link-set with multiple independent doors and/or door sets.

The system utilizes the name of the door prim to separate door sets.

The only script needed for a door is the door script. All others are just accessories.

DOOR SCRIPTS

There are multiple door scripts to choose from for four different door types, Rotating, Sliding, Shrinking and Hollow. Each type of the Rotating and Sliding has 6 scripts, two for each axis that is effected by the script for its action. There are only 3 scripts for the shrinking doors, one for each axis. The hollow door type has 12 scripts for Circular and Square openings opening to 80% and 90%. To use just place the script of the desired door type into the door prim. Make sure to set the description of the door prim to OPEN or CLOSED accordingly. Spelling must be exact. If the description field is not set correctly the door will assume it is closed when first triggered and will respond accordingly. All doors that you want to move at the same time must all be named exactly the same forming a door set. Make sure the door prim is not the root prim of the build or occupying the same region coordinates as the root prim.
     
NOTE: The door script script will replace the description of the prim with the door's current state after every move.

REMOTE TRIGGER SCRIPTS

There are 3 remote trigger scripts to chose from. Remote triggers are use din a prim other than the prim with the door script and used to trigger the door from some where else in the link-set. The prim with the remote switch script MUST be named exactly the same as the door prim it is supposed to trigger. DO NOT place the remote switch script in the same prim as a door script.

AUTOCLOSE TIMER SCRIPT

The autoclose timer script is used to automatically close the door after a set time period has elapsed.
The autoclose script can be used in a prim with either a remote switch script or a door script or it can be placed in a prim by itself. The name of the prim containing the autoclose script must be the exact same name as the door prim the autoclose is supposed to close.

IMPORTANT NOTE: Use only 1 autoclose script per door set. It will effect all doors in the set and having more than 1 autoclose script per set will cause undesired door action. The autoclose script defaults to 10 seconds. If you want to set a time other than 10 seconds append AC## to the end of the door set name, separated form the door name with a space, replacing ## with the number of seconds you want the door to wait before automatically closing.

                EXAMPLE: Test Door AC20

DOOR LAMP SCRIPT

The door lamp script can be used to light up a prim to indicate when the door is open and closed. It can be placed in any prim as long as the name of that prim is the exact same as the door the lamp is supposed to respond to.

No comments:

Post a Comment