Just drop this script on any door and click for an ultra smooth rotating action. It's that easy. The door goes phantom while opening to avoid bumping into it.
Rotating speed is defined within the script. By default the door will take about three seconds to open, but you can increase or decrease this as much as you like. A slow speed works particularly well for large, imposing doors.
Works on doors that are part of a linked set of objects. If the door is the root prim, the entire linked set will rotate. If it's not, only the door will rotate.
By default the door rotates around its centre. To make it rotate around one side, if it is a tall, rectangular door - just right click the door to edit it and, in the object tab, set 'Path Cut Begin' to 0.125 and 'Path Cut End' to 0.375. Presto chango! Door rotates around the side. Easy. For other shaped doors just use the same principle and tweak the settings as required.
Once you add the script anyone can open the door. To restrict access, just add the names of those you want to allow access to in the place indicated in the script. I have clearly marked in the script where to do this. It's easy. Trust me. You can even allow all members of a group to open the door, without having to type every single name into the list. Just set the door to belong to that group, change one setting in the script and you're done.
The door will close automatically after ten seconds or when touched, which ever happens first. You can easily change the time the door stays open by typing the number of seconds into the place clearly indicated in the script. You can even make it stay open permanently.
Contains detailed instructions inside the script. Anyone can do it!
To see the door script in action, click the image below:
https://www.wirejunkie.com/images/xstreet/ultra-smooth-rotating-door.jpg
Features
* Rotating speed can be set to whatever you like.
* Opens the door to which it is attached when the door is touched - rotates around the positive Z axis (but this can be changed within the script).
* Opening angle can be anything from 1 to 360 degrees (90 degrees by default).
* Automatically closes after ten seconds, or when touched again, whichever comes first.
* Opening time can be set to any time, even permanently open.
* Works at any rotation angle.
* Owner can always open door.
* Access can be restricted to list of users, or group.
* Plays sound when door is opened or closed - easy to add your own sounds, or turn the sound off completely.
* Works if your door is part of a linked set of prims.
* Full usage instructions included in script.
Prefer a sliding door? Try my ultra smooth sliding door opener script.
http://www.wirejunkie.com/images/xstreet/kas-and-thei-promo-250i.png
See Mason Kas' and Thaiis Thei's other amazing scripted items!
EXCELLENT!!
Had purchased many door scripts and these 4 beat them all. The search is over! YAY!
Just what I wanted...
Looking for the perfect script to use, make minor adjustments to and use in objects I sell, after 2-3min of figuring how to rotate on the side rather then center I was very pleased. "locking" or gourp access was so obvious and easy to adjust Very Happy!
Beautiful script for a simple, smooth rotation. I'd been looking for a smooth swing script to use on a large pieces of architectural furniture, one without any unnecessary bells and whistles, config cards, chatty debug messages and whispering. Just wanted something simple, and I found it.
