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) {
- // Sender- llRegionSayTo(llGetOwner(),channelNo,"Attached");
- // Listener-
- listenHandle = llListen(channelNo, "", llGetOwner(), "");
- } else
- // Listener-
- remove_listen_handle();
- // Sender- llRegionSayTo(llGetOwner(),channelNo,"Detached");
- }
- }
- listen(integer chan, string name, key id, string msg) {
- if (msg == "Attached") llOwnerSay("watch attached");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement