Don't click here unless you want to be banned.

LSL Wiki : llListenControl

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are crawling22.us.archive.org
llListenControl(integer number, integer active)

Sets the listen event with the handle number as active (active = TRUE) or inactive (active = FALSE).

Example:
integer Handle;

default {
    state_entry() {
        Handle = llListen(0, "", NULL_KEY, ""); // start listening
    }

    touch_start(integer total_number) {
        // when touched...
        llListenControl(Handle, TRUE); // ...enable listen
    }
    
    listen(integer channel, string name, key id, string message) {
        // when told "off"...
        if (message == "off") llListenControl(Handle, FALSE); // .. disable listen

        else llSay(0, llList2CSV([name, message])); // repeat message
    }
}


Functions / Chat / Communications
Comments [Hide comments/form]
Attach a comment to this page: