Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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);
- // }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement