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

LSL Wiki : llListenControl

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are crawl338.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
    }
}


This article wasn't helpful for you? Maybe the related article at the LSL Portal is able to bring enlightenment.

Functions / Chat / Communications
There is no comment on this page. [Display comments/form]