07-21-2006 21:25
Been wroking on this some time now. A script to work in all case. For doors, swings, wings, iris doors, folding doors, bridges and what not. Anything that you want to rotate from one position to another. There are some limits to it. Here are the settings I have on it so far, which are all read in from a notecard system. Looking for sugestions for more setting. I might combine some. such as the Open and Close commands for Link and Listen

a demo is setup here.
WARNING: this might open anther SL client.
http://slurl.com/secondlife/Aglia/89/43/46/

NOTECARD SETTING:
//, Set door in close position before saving.
//, Open/Close Commands are case sensitive as well as Sounds where name of sound can be used or UUID/Key.
//, If sound name is use it must be in inventory of object
//, Time to stay open if set to 0.0, it will stay open permanently tile close command given or touched.
//, Open Angle must be between 1.0 and 179.0 or -1.0 and -179.0
TouchEnable, 1
CollideEnable, 0
ListenEnable, 1
LinkMessageEnable, 0
OwnerTouchOnly, 0
OwnerListenOnly, 0
LinkMessageStringOpenCommand, open
LinkMessageStringCloseCommand, close
ListenChannel, 1
ListenOpenCommand, open
ListenCloseCommand, close
TimeToOpen, 5
TimeToStayOpen, 0
OpenAngle, -80
SoundVolume, 0.75
OpenStartSound,
OpenLoopSound,
OpenEndSound,
CloseStartSound,
CloseLoopSound,
CloseEndSound,
RotationAxis, Z
PhantomMode, 0
OscillateStartCommand, start
OscillateStopCommand, stop
Oscillate, 1

Also been thinking over the note card system. Right now you drop a card in and it starts reading from it. Drop another one in, it deletes the old one and start reading from the new one. Or I could set it up so you put the name of the card in the objects Description. Looking for simple to use and setup for the user. As it stands now. you can only have one notecard in the prims inventory. It will not run with zero or more than one.