G General

[:AT:] Universal Door Base Gate Versión 2.0

[:AT:] Universal Door Base Gate
Detalles
Funciones
Contenidos
Reseñas

This door looks best with a PBR Aware Viewer

|--Basics--|
*********

Rez the door, put it in where you want it, texture the wall faces how you like
Click the door opener button to open door

--Advanced Customizing--

If you resized the door, you need to change the pane distances, so it knows how far it has to open out to, read bellow in Config Notecard section how, You also MUST RESET SCRIPTS in the door, so it re-records the panes home position (closed state)
DO NOT reset scripts while the door is open or in motion!

Door is linkable, however do not link two doors together, or else they will confuse the door panes between each!

Door can work by various API handles too, for compatibility with any custom script you desire!

You can change the color of the glass pane in the door with SL's build menu, also you can change the specular colors on it too

|--Config Notecard--|
******************

The script will ignore the contents of this notecard.
The script reads the NAME of this notecard by the following format:
config,autoclosetime,distanceside,distancetop,movetime,apichannel

autoclosetime defines how long the door is open before it closes on its own
distanceside defines by how much the side panes of the door move when opened or closed
distancetop defines by how much the top panes of the door move when opened or closed
movetime defines how fast the door opens (in seconds)
apichannel defines what link message number it will accept (advanced users)

Example default: config,60.0,2.7,3.45,1.7,2100

The moment you change the name the door will update to the new values

Note: Different kind of doors may handle the two distance values differently
Like for example a double pane door would use distancetop as side, and distanceside as the other side!
or a single pane door might totally ignore the second value (distancetop)

|--Door API (advanced users)--|
***************************

Door API functions by link messages, where the integer number field of link message must correspond to configured API channel (default 2100)

the string message field must correspond to one of these commands:

"doorcycle" - Cycles the door to the next state, perfectly equivalent to pressing the button on the door
"opendoor" - Opens the door if not already open (IGNORES LOCK)
"closedoor" - Closes the door if not already closed (IGNORES LOCK)
"lockdoor" - Locks the door (sets description to LOCKED
"unlockdoor" - Unlocks the door (sets description to UNLOCKED)
"disablecontrol" - Disables the button touch control (useful if you have something else to handle door openings, like automatic door or a keypad)
"enablecontrol" - Enables the button touch control

example API: llMessageLinked(LINK_ROOT,2100,"doorcycle",NULL_KEY); //cycle the door

The door sends two API back
When the door is opened, it sends the message "dooropened" on API channel
WHen the door is closed, it sends the message "doorclosed" on API channel

|--The potential--|
***************

You can work your own scripted systems with the door, just by simply putting your script into the contents of the door and operating it with API handles, you can create your own locking/unlocking mechanism that only your imagination and scripting knowledge can put limits to!

|--Putting script into your own door--|
*******************************

The script can indeed operate in any custom door you desire as long as following criteria is met:

There must be a door frame as base prim
There must be a prim called "ctrl" as this is your control button you touch to open (it should reach over to both sides of the frame)

There must be sufficient door prims based on what kind of door script it is (single, double, triple)
Single expects a "door1"
Double expects "door1", "door2"
Triple expects "Door.L", "Door.R, "Door.T"

Single and Double expect orientation of door panes as Y sideways, X forward Z upward
Triple expects orientation of door panes as X sideways, Y forward, Z upward

You can add your custom sounds to the door by setting the description of the "door1" prim (on any door except triplane) to the following format: soundopenuuid,soundcloseuuid

You have to reset the script to apply the new sounds

DISCLAIMER! This package only contains the single pane door scripts, do not expect it to work with double and triple pane designs!

  • PBR Enabled
  • Recolorable
  • Model your own!
Clasificación media: estrella llena estrella llena estrella llena estrella vacía estrella vacía
  • 5 estrella:
  • 4 estrella:
  • 3 estrella:
  • 2 estrella:
  • 1 estrella:
The door works but...
estrella llena estrella llena estrella llena estrella vacía estrella vacía Publicado May 09, 2025 por Spoons Delcon

you provide instructions to change the notecard for config...but the notecard is no mod. possibly just an oversight

¿Te ha resultado útil esta revisión?