How do I set the rotation of an object to 0,0,0 ?
Here's what I have now..
default
{
state_entry()
{
llSay(0, "turning on!"
; llTargetOmega(<0,.5,1>,0.9,PI);
}
touch_start(integer total_number) // when i'm touched..
{
state off; // sets the script to a new "state" an starts running "state off"
}
} // this curly bracket ends the body default the default state.
state off // a second state besides "default"
{
state_entry()
{
llSay(0, "turning off!"
; llTargetOmega(<0,.5,1>,0.0,PI);
llSetRot(<0,0,0>
;}
touch_start(integer total_number) // when i'm touched..
{
state default; // sets the script to a new "state" and starts running "state on"
}
} // this curly bracket ends the body of the off state.