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[]
Door Script Fact Sheet | ||
---|---|---|
Type | Sliding door Rotating Door |
This will make the door slide. This will make the door rotate. |
Direction | Left Right Up Down |
This will pick the direction the door rotates or slides. |
Axis | X Z |
This determines the sliding door facing towards the X direction. This determines the sliding door facing towards the Z direction. |
Off-Set Slide Distance | 0-1000000 | This sets the distance a door will slide (rotating doors do not use this setting). |
Rotation | 0.00-6.28 | This determines the angle a door rotates on (sliding doors do not use this setting). A Rotation value of 1.57 (radians) corresponds to 90°, a Rotation value of 3.14 (radians) is 180°. The table here describes the way that the Rotation values work. |
Velocity Opening | 0.01-7200 | This is the speed the door opens at. |
Auto-Close | This allows the door to automatically close after the Duration Auto-Close has expired. | |
Toggle Collision* | This will alter the way collision works. See notes below for more info. | |
Duration Auto-Close | 0.01-7200 | How long the door stays open before it closes itself if auto-close is enabled. |
Remain Open |
This will make it so that triggering the door by entering a trigger box area only toggles open once, and can only be closed upon clicking the door. |
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.
Setup rotating door | ||
---|---|---|
Type | Rotating Door | |
Direction | Left or Right | |
Axis | X | |
Off-Set Slide Distance | n/a | |
Rotation | 2.5 | |
Velocity Opening | 3 | |
Auto-Close | True | |
Toggle Collision* | False | |
Duration Auto-Close | 3 | |
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.
Setup sliding door | ||
---|---|---|
Type | Sliding Door | |
Direction | Left or Right | |
Axis | X or Z | |
Off-Set Slide Distance | 600 | |
Rotation | n/a | |
Velocity Opening | 3 | |
Auto-Close | True | |
Toggle Collision* | True | |
Duration Auto-Close | 5 | |
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.
Setup rotating door 1 | Setup rotating door 2 | ||
---|---|---|---|
Type | Rotating Door | Type | Rotating Door |
Direction | Left | Direction | Right |
Axis | X | Axis | X |
Off-Set Slide Distance | n/a | Off-Set Slide Distance | n/a |
Rotation | 1.57 | Rotation | 1.57 |
Velocity Opening | 3 | Velocity Opening | 3 |
Auto-Close | True | Auto-Close | True |
Toggle Collision* | False | Toggle Collision* | False |
Duration Auto-Close | 3 | Duration Auto-Close | 3 |
Remain Open | False | Remain Open | False |
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.
Setup sliding door 1 | Setup sliding door 2 | ||
---|---|---|---|
Type | Sliding Door | Type | Sliding Door |
Direction | Left | Direction | Right |
Axis | X or Z | Axis | Same as door 1 |
Off-Set Slide Distance | 600 | Off-Set Slide Distance | 600 |
Rotation | n/a | Rotation | n/a |
Velocity Opening | 3 | Velocity Opening | 3 |
Auto-Close | True | Auto-Close | True |
Toggle Collision* | True | Toggle Collision* | True |
Duration Auto-Close | 3 | Duration Auto-Close | 3 |
Remain Open | False | Remain Open | False |
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.
Setup window | ||
---|---|---|
Type | Sliding Door | |
Direction | Up | |
Axis | X | |
Off-Set Slide Distance | 600 | |
Rotation | n/a | |
Velocity Opening | 3 | |
Auto-Close | False | |
Toggle Collision* | False | |
Duration Auto-Close | 5 | |
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.
Setup sliding door 1 | Setup rotating door 1 | ||
---|---|---|---|
Type | Sliding Door | Type | Rotating Door |
Direction | Up | Direction | Down |
Axis | X or Z | Axis | Same as door 1 |
Off-Set Slide Distance | 600 | Off-Set Slide Distance | 600 |
Rotation | n/a | Rotation | n/a |
Velocity Opening | 3 | Velocity Opening | 3 |
Auto-Close | True | Auto-Close | True |
Toggle Collision* | True | Toggle Collision* | True |
Duration Auto-Close | 3 | Duration Auto-Close | 3 |
Remain Open | False | Remain Open | False |
Set Collidable On in the State tab.
Lowering Door[]
Setup lowering door | ||
---|---|---|
Type | Sliding Door | |
Direction | Up | |
Axis | X | |
Off-Set Slide Distance | 600 | |
Rotation | n/a | |
Velocity Opening | 3 | |
Auto-Close | False | |
Toggle Collision* | False | |
Duration Auto-Close | 5 | |
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.
Setup sliding door 1 | Setup rotating door 1 | ||
---|---|---|---|
Type | Sliding Door | Type | Rotating Door |
Direction | Up | Direction | Down |
Axis | X or Z | Axis | Same as door 1 |
Off-Set Slide Distance | 600 | Off-Set Slide Distance | 600 |
Rotation | n/a | Rotation | n/a |
Velocity Opening | 3 | Velocity Opening | 3 |
Auto-Close | True | Auto-Close | True |
Toggle Collision* | True | Toggle Collision* | True |
Duration Auto-Close | 3 | Duration Auto-Close | 3 |
Remain Open | False | Remain Open | False |
Set Collidable On in the State tab.
Trapdoor[]
We suggest to use the Trapdoor prop for this specific purpose including the trapdoor frame.
Setup trapdoor | ||
---|---|---|
Type | Rotating Door | |
Direction | Down | |
Axis | X | |
Off-Set Slide Distance | n/a | |
Rotation | 1.57 | |
Velocity Opening | 0.5 | |
Auto-Close | True | |
Toggle Collision* | True | |
Duration Auto-Close | 5 | |
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.
Setup drawbridge | ||
---|---|---|
Type | Sliding Door | |
Direction | Up | |
Axis | X | |
Off-Set Slide Distance | 600 | |
Rotation | n/a | |
Velocity Opening | 3 | |
Auto-Close | False | |
Toggle Collision* | False | |
Duration Auto-Close | 5 | |
Remain Open | True |
Set Collidable On in the State tab.
| ||
Decorating | ||
---|---|---|
Bots - Chromium - Decorating Guides - Deco Tools - Domain - Prop Editor - Property - Props - Prop States - Ramps - Scripts - Transport - World Texture Editor - Zaby | ||
Script Pages | ||
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) - Web Browser PopUp (Chromium) | ||
Deco Articles | ||
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 |