Difference between revisions of "PUBLIC CHANNEL"

From Second Life Wiki
Jump to navigation Jump to search
 
(16 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{LSL Constant
<onlyinclude>{{#vardefine:PUBLIC_CHANNEL|{{LSL Const|PUBLIC_CHANNEL|integer|ihex=0|hex=0x0|c={{#if:{{{direct|}}}|Chat channel used to broadcast to a specific user or prim. This channel is sometimes referred to as: open chat, local chat and public chat.|Chat channel that broadcasts to all nearby users. This channel is sometimes referred to as: open chat, local chat and public chat.}}}}}}</onlyinclude>{{LSL Constant
|name=PUBLIC_CHANNEL
|name={{#var:cname}}
|type=integer
|type={{#var:type}}
|value={{LSL Hex|0x0}}
|hvalue=0x0
|desc=Chat channel reserved for debug and error messages from scripts
|value=0
|examples
|desc=Chat channel that broadcasts to all nearby users & objects. This channel is sometimes referred to as: open chat, local chat and public chat.
 
If used with a [[llRegionSayTo]], it goes to the specified user or prim. Unlike private channels, the user's attachments do not receive the message.
|comment={{#var:comment}}
|examples=
<source lang="lsl2">
default
{
    touch_start(integer num_detected)
    {
        llSay(PUBLIC_CHANNEL, "Hello there, I'm talking in local chat on channel 0.");
    }
}
</source>
|constants=
|constants=
{{LSL DefineRow||[[DEBUG_CHANNEL]]|}}
{{LSL ConstRow|DEBUG_CHANNEL}}
{{LSL ConstRow|COMBAT_CHANNEL}}
|functions=
|functions=
{{LSL DefineRow||[[llWhisper]]|}}
{{LSL DefineRow||[[llWhisper]]|}}
{{LSL DefineRow||[[llSay]]|}}
{{LSL DefineRow||[[llSay]]|}}
{{LSL DefineRow||[[llShout]]|}}
{{LSL DefineRow||[[llShout]]|}}
{{LSL DefineRow||[[llRegionSay]]|}}
{{LSL DefineRow||[[llRegionSayTo]]|}}
{{LSL DefineRow||[[llListen]]|}}
{{LSL DefineRow||[[llDialog]]|}}
{{LSL DefineRow||[[llTextBox]]|}}
|events=
|events=
{{LSL DefineRow||[[listen]]|}}
{{LSL DefineRow||[[listen]]|}}
|cat1
|haiku={{Haiku|Oh woeful constant,|the focus of much Strife,|value, no, but priceless.}}
|cat2
|cat1=Chat
|cat3
|cat4
}}
}}

Latest revision as of 01:58, 15 August 2024

Description

Constant: integer PUBLIC_CHANNEL = 0x0;

The integer constant PUBLIC_CHANNEL has the value 0x0

Chat channel that broadcasts to all nearby users & objects. This channel is sometimes referred to as: open chat, local chat and public chat.

If used with a llRegionSayTo, it goes to the specified user or prim. Unlike private channels, the user's attachments do not receive the message.

Caveats


Related Articles

Constants

•  DEBUG_CHANNEL
•  COMBAT_CHANNEL

Functions

•  llWhisper
•  llSay
•  llShout
•  llRegionSay
•  llRegionSayTo
•  llListen
•  llDialog
•  llTextBox

Events

•  listen

Examples

default
{
    touch_start(integer num_detected)
    {
        llSay(PUBLIC_CHANNEL, "Hello there, I'm talking in local chat on channel 0.");
    }
}

Deep Notes

Search JIRA for related Issues

Signature

integer PUBLIC_CHANNEL = 0x0;//Chat channel that broadcasts to all nearby users. This channel is sometimes referred to as: open chat, local chat and public chat.

Haiku

Oh woeful constant,
the focus of much Strife,
value, no, but priceless.