Door Object

The **Door Object** script allows you to control props and have them animate in different directions and rotations. This is mostly used for doors but there are other neat things that can be achieved with this script.

The directions a sliding door can be set to are sideways, up or down. Rotating doors can rotate upwards or downwards. Furthermore by adding a couple of new settings such as, which axis it is supposed to affect, sliding distance, rotating angle, speed, wait time and hold time, the ability to remain open and even automatically closing and looping. In combination with the Trigger Linked Script you can remotely control these doors, or have them open once a user gets close by enough to activate.

## Door Object script fact sheet

### State tab settings

* Collidable, when this is off the door will never collide, on the door will always be colliding.
* Clickable Trigger, makes you click the door to open or close it.
* Activate on Load, will activate the door when a person lands in the region.

### Notes

* You can add two Door Object script to one prop, for example adding two types, a sliding door and rotating door for interesting effects such as garage doors.
* If the door State is set with Collidable Off and Toggle Collision is enabled, the door will be collidable when closing, and keep this until it's closed again..
* If the door State is set with Collidable On and Toggle Collision is enabled, the door will be collidable when closing, and keep this until it's opened again..

## Examples Door Object

You can find a showroom marta has made here utherverse.vww/@1645154#enter

Or the video made by Sonja Holland showing some general door usages:

## Door setups & ideas

### **Common settings**

Below are common door setup to use with the Door Object script. Before choosing any of these options, first choose how these doors operate. For any of the below doors you can choose the following options:

* Automatically opening door
* Clickable door
* Clickable and automatic door

To make a automatically opening door, add a Trigger Box 01 prop around the door. The collidable area of this trigger box will specify the trigger moment, then set the trigger box to **trigger** enabled on the State tab, and add the Trigger Linked Script script to it using the PID from the door(s) you want opening. Set the script to trigger on enter, if you also enable trigger on exit, ideally you change the auto-close to **false**.

To make a clickable door, enable **Clickable Trigger** in the State tab of the door prop itself.

Do both of these to have a clickable and automatic door, you most likely will want to make sure the auto-close is **true** on the door prop, and on the trigger linked script trigger, on exit, is set to **false**.

### Classic rotating door

The classic door is a throwback to the original rotating door script that was removed when the new Door Object script was introduced. The setup is pretty straight forward, and most values are already set as default when adding the script to a door. You can make the door rotate open narrower or wider by changing the rotational value.

 **Remain Open** | False

Set *Collidable* **On** in the State tab.

### Simple sliding door

The sliding door allows a door to move left or right in a staffing motion. The Off-Set Slide Distance determines how far the door moves right or left on the specified axis. With a sliding door it might be useful to set the toggle collision to true to alternate the way the collision works and allow smooth passing by.

 **Remain Open** | False

Set *Collidable* **On** in the State tab.

### Double rotating doors

To make a double rotating door use two door props and set the direction to Left on one and Right on the other.

Set Collidable **On** in the State tab.

### Double sliding doors

To make a double sliding door use two door props and set the direction to Left on one and Right on the other.

Set *Collidable* **Off** in the State tab.

### Sliding window

For this to work, we assume this window slides up over an another window that isn't movable. Ideally if you set this up you might want to consider adding a switch that sets all windows in a house open or close.

 **Remain Open** | True

Set *Collidable* **On** in the State tab.

### Japanese sliding screens

For this one to work you most likely need to setup 4 different doors, as they will fold into each other.

Set *Collidable* **On** in the State tab.

### Lowering Door

 **Remain Open** | True

Set *Collidable* **On** in the State tab.

### Garage door

In order for these to work properly you need to put two Door Object scripts on the **same** prop.

Set *Collidable* **On** in the State tab.

### Trapdoor

We suggest to use the Trapdoor prop for this specific purpose including the trapdoor frame.

 **Remain Open** | False

Set *Collidable* **Off** in the State tab.

### **Drawbridge**

We suggest to use the trap door without hinge prop for this specific purpose, with a texture that suits a drawbridge. And also no trapdoor frame.

 **Remain Open** | True

Set *Collidable* **On** in the State tab.

 Bots -
Chromium -
Decorating Guides -
Deco Tools -
Domain -
Prop Editor -
Property -
Props -
Prop States -
Ramps -
Scripts -
Transport -
World Texture Editor -
 Animated Textures -
Audio Add Sound -
Audio Play Music -
Being.Me -
Bots -
Cached Web Image -
Dance Pole -
**Door Object** -
Lighting -
Move To scripts -
Pickup Object -
Sprites -
Scale Object -
Trigger Linked Script -
Web Browser (Chromium) -
 Animal Props -
Alpha Pine Tree -
Beds -
Breaking Out -
Chairs & Seating -
Doors -
Diving Board -
Dungeon Crosses -
Fire Places -
Floors -
Pole Dance Pole -
Primitive Props -
Lapdance Chairs -
Ramps -
Rope Prop -
Sign 01 -
Tileable Props -
Texture Translucent -
Triggers -
VIP Ropes