G General

1166 Open Close Slide Door+ EXAMPLE

1166 Open Close Slide Door+ EXAMPLE
Details
Features
Contents
Reviews

░░░ Click Slide Door Script + EXAMPLE ░░░

Youtube Video example>>>

✅ Content:

01 Script for Automatic Open / Close

✅ Permission:

✅COPY ✔
✅MODIF ✔
✅TRASNF ✔

NOTE PARCIAL INFORMATION:

//
// By default, the door slides along the positive X axis, i.e. it
// will slide to the right if you are facing North. See below for
// instructions on chaning direction, distance, sound, access
// control and opening time.
//
// IMPORTANT NOTE 1: This script only works on standalone
// objects. That's the tradeoff for ultra-smooth opening
// action. If you need a door script that works as part
// of a linked set of objects, try my other door opening
// scripts.
//
// IMPORTANT NOTE 2: Only change these options while the door
// is closed. The position it is in before you add the script
// is the closed position. If you save the script while the
// door is open, the door may become confused about its
// state; it will think it's open when it should be closed.
// If this happens, simply move the door back to where it
// should be when closed.
//
// The axis specifed below determines in which direction the door
// will slide. Specify AXIS = "X", "-X", "Y" or "-Y" to slide
// in any of four possible horizontal directions (right, left,
// forwards, backwards, depending on which way you're facing).
// To make the door slide upwards, change AXIS to "Z". Use "-Z" to
// make the door slide down, but note that the door will be unable
// to slide into the ground (i.e. only use "-Z" if the door is in
// the second story of a building, or is in a skybox or similar):
//

string AXIS = "X";

//
// Ordinarily, the door will slide a distance of 90% of its size,
// so that when it's open, you can still see enough of it that you
// can touch it again to close it. To make it slide further,
// increase the number below. To make it slide less far, decrease
// the number, e.g. use 0.5 to slide 50% of the door's size.
// (Note that the minimum distance is 0.1, and maximum is 10.0).
//

float DISTANCE = 0.9;

//
// The door will make a sound when it opens or closes. If you
// don't want sound, specify PLAY_SOUND = FALSE below:
//

integer PLAY_SOUND = FALSE;

//
// If you would like to use your own sounds instead of the default
// sounds, drag your sounds into the object's contents, then specify
// their names below in place of DEFAULT. You can use the same
// sound for both opening and closing if you like:
//

string OPEN_SOUND = "DEFAULT";
string CLOSE_SOUND = "DEFAULT";

//
// Once you add the script anyone can open the door. If you want
// to restrict access you need to edit the list of authorized
// users below. If this list is empty (i.e.
// 'list AUTHORIZED_USERS = [];'), anyone can open the door
// by touching it. If you want to restrict access to only
// certain users, just type their names in, e.g.:
//
// list AUTHORIZED_USERS = ["First Friend", "Second Friend", "Third Friend"];
//
// If you want to be the only person able to open the door
// place only your name in the list, e.g.:
//
// list AUTHORIZED_USERS = ["Your Name"];
//

list AUTHORIZED_USERS = [];

//
// You can allow all members of a group to open the door,
// without having to type every single name into the list.
// Just change the group of the object to the group you want
// to allow access to, and set 'ALWAYS_ALLOW_GROUP = TRUE'
// below (the default setting is, ALWAYS_ALLOW_GROUP = FALSE,
// which means the group will not be allowed access automatically).
//

integer ALWAYS_ALLOW_GROUP = FALSE;

//
// The door will close automatically after ten seconds or when
// touched, whichever happens first. You can easily change the
// time the doors stays open by changing the number of seconds
// below. If you set it to 0.0, the door will open and then
// remain open.
//

float CLOSE_DOOR_AFTER = 10.0;

//
// The door will ordinarily take about three seconds to open
// or close. To make it slower or faster, increase or
// decrease the number of seconds below. Note that this
// figure is only approximate - experiment to get the effect
// you desire.
//

float APPROXIMATE_SPEED_IN_SECONDS = 3.0;

View Video »
  • 1166 Open Close Slide Door+ EXAMPLE