integer CHANNEL = -1;
vector curpos;
rotation currot;
transmit(string cmd, string text)
{
string full = cmd+"|"+text;
//llOwnerSay("Transmitting: '"+full+"'");
llRegionSay(CHANNEL,full);
}
default
{
state_entry()
{
curpos = llGetPos();
currot = llGetRot();
transmit("RESET",(string)curpos+"|"+(string)currot);
llSetTimerEvent(0.1);
}
touch_start(integer count)
{
float x = 0;
rotation newrot = llGetRot();
// if( (newrot!=currot) )
// {
currot = newrot;
transmit("ROTATED",(string)curpos+"|"+(string)currot);
// }
}
}
Comments
0 B
|0 👍
/0 👎
0 B
|0 👍
/0 👎