|
// Note: To make your object rotate around one edge, try editing it and using these settings on the object tab:
// Size (adjust as necessary): X=.2, Y=3, Z=2.5, and Path Cut Begin = 0.38, Path Cut End = 0.87
integer open = FALSE;
default
{
state_entry() {
llSensorRepeat("", NULL_KEY, AGENT, 5, PI, 5);
}
sensor(integer total_number) {
llSetRot(llEuler2Rot(<0, 0, PI_BY_TWO>) * llGetRot());
}
no_sensor()
{
llSleep(20);
llSetRot(llEuler2Rot(<0, 0, -PI_BY_TWO>) * llGetRot());
}
} |
|
// This script was auto-generated by Ann Enigma's script autogenerator
// available at http://www.3greeneggs.com/autoscript/
//Note: To make your object rotate around one edge, try editing it and using these settings on the object tab:
// Size (adjust as necessary): X=.2, Y=3, Z=2.5, and Path Cut Begin = 0.38, Path Cut End = 0.87
integer open = FALSE;
default
{
state_entry() {
llSetTimerEvent(30);
}
timer() {
if (open == FALSE) {
open = TRUE;
llSetRot(llEuler2Rot(<0, 0, PI_BY_TWO>) * llGetRot());
} else {
open = FALSE;
llSetRot(llEuler2Rot(<0, 0, -PI_BY_TWO>) * llGetRot());
}
}
} |
|
// This script was auto-generated by Ann Enigma's script autogenerator
// available at http://www.3greeneggs.com/autoscript/
// Note: To make your object rotate around one edge, try editing it and using these settings on the object tab:
// Size (adjust as necessary): X=.2, Y=3, Z=2.5, and Path Cut Begin = 0.38, Path Cut End = 0.87
integer open = FALSE;
default
{
touch_start(integer total_number) {
if (open == FALSE) {
open = TRUE;
llSetRot(llEuler2Rot(<0, 0, PI_BY_TWO>) * llGetRot());
} else {
open = FALSE;
llSetRot(llEuler2Rot(<0, 0, -PI_BY_TWO>) * llGetRot());
}
}
} |