I am looking for a garage door script. A simple swing open on touch. I have a door script now here is the script.
//door script
vector gPos;
default {
state_entry() {
llSetRot(llEuler2Rot(<0,0,0>));
}
touch_start(integer total_number) {
gPos = llGetPos();
llSetRot(llEuler2Rot(<0,0,PI/2>));
llSetTimerEvent(4.0);
}
timer() {
llResetScript();
llSetPos(gPos);
}
}
When I rotate this prim 90 degrees and then click it the door returns to the upright position.
If anyone knows where I can find a garage door script (I have looked on Outworlds, and Opensim Forums) or if this script an can be changed to work I would really appreciate it
Thanks Greg
