Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- integer channelNo = -730441;
- integer listenHandle = 0;
- remove_listen_handle() {
- if (listenHandle)
- llListenRemove(listenHandle);
- }
- default {
- attach(key id) {
- if(id) {
- // llRegionSayTo(llGetOwner(),channelNo,"Attached");
- listenHandle = llListen(channelNo, "", llGetOwner(), "");
- } else remove_listen_handle();
- // llRegionSayTo(llGetOwner(),channelNo,"Detached");} listen (integer c, string n, key id, string msg){if(msg=="ack") llRegionSayTo(llGetOwner(),channelNo,"Attached");
- }
- listen(integer chan, string name, key id, string msg) {
- if (msg == "Attached") llOwnerSay("watch attached");
- }
- /* state_entry()
- {
- llSay(0, "Hello, Avatar!");
- }
- touch_start(integer total_number)
- {
- llSay(0, "Touched.");
- } */
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement