DEBUG CHANNEL

From Second Life Wiki

Jump to: navigation, search

Template:Needs Translation/LSL/es Template:Needs Translation/LSL/el Template:Needs Translation/LSL/he Template:Needs Translation/LSL/it Template:Needs Translation/LSL/ko Template:Needs Translation/LSL/nl Template:Needs Translation/LSL/hu Template:Needs Translation/LSL/no Template:Needs Translation/LSL/da Template:Needs Translation/LSL/sv Template:Needs Translation/LSL/tr Template:Needs Translation/LSL/pl Template:Needs Translation/LSL/pt Template:Needs Translation/LSL/ru Template:Needs Translation/LSL/uk Template:Needs Translation/LSL/zh-Hans Template:Needs Translation/LSL/zh-Hant

Contents

Description

Constant: integer DEBUG_CHANNEL = 0x7FFFFFFF;

The integer constant DEBUG_CHANNEL has the value 0x7FFFFFFF

Chat channel reserved for script debugging and error messages. The client will display chat on this channel in the script console.

Related Articles

Constants

•  PUBLIC_CHANNEL

Functions

•  llWhisper
•  llSay
•  llShout
•  llRegionSay
•  llDialog
•  llListen

Events

•  listen

Useful Snippets

key owner;
 
default{//little link_message debugging script
    link_message(integer a, integer b, string c, key d){
        llSay(DEBUG_CHANNEL, llList2CSV([a,b,c,d]));
        if(llGetOwner() != owner)
            llSetScriptState(llGetScriptName(), FALSE);
    }
    state_entry(){
        owner = llGetOwner();
    }
}

Deep Notes

Source

'linden\indra\llcommon\indra_constants.h' as CHAT_CHANNEL_DEBUG (with a value of S32_MAX)

Personal tools
In other languages