salahzar icon

TransmitterWorkingSL

salahzar | PRO | 02/05/22 08:05:46 PM UTC | 0 ⭐ | 11754 👁️ | Never ⏰ | []
LScript |

700 B

|

None

|

0 👍

/

0 👎

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

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎