I have bought a script for sliding doors, and I can't make it work. They wont slide...? The script is as following:
// Sliding Door Script
// By Lux Zhukovsky
vector size;
float dimx;
rotation rot;
vector angle;
string id;
integer count;
vector offset;
default
{
state_entry()
{
size= llGetScale();
size.x -= 0.1;
dimx = size.x;
rot = llGetLocalRot();
angle = llRot2Fwd(rot);
offset = dimx*angle;
}
touch_start(integer p)
{
integer x;
vector pos = llGetLocalPos();
for (x = 1; x < 2; x++)
{
llSetPos(pos + x*offset);
llSleep(0.1);
}
offset *= -1;
}
}
When I make an object I paste this script into the content folder – is there anything else I can do? I mean - eventhough the doors are standing in the middle of nowhere, I guess they should still work. Do I need to attach them to my house first? And should they be linked?
Please help - I have already spent 3 hours on these doors, and they are driving me crazy!
Mutti Slade