Difference between revisions of "LlWhisper"

From Second Life Wiki
Jump to navigation Jump to search
m (LSL llWhisper moved to LlWhisper: removing prefix)
Line 9: Line 9:
|p2_type=string
|p2_type=string
|p2_name=msg
|p2_name=msg
|func_desc=whispers the text supplied in string ''msg'' on channel supplied in integer ''channel''.
|func_desc=whispers the text supplied in string '''msg''' on channel supplied in integer '''channel'''.
|return_text
|return_text
|spec
|spec
|caveats=Text can only be a maximum of 1024 bytes. Whispers can only be heard within 10 meters of the speaking object. An object can '''not''' hear itself, to prevent problems with recursion.
|caveats=Text can only be a maximum of 1024 bytes. Whispers can only be heard within 10 meters of the speaking object. An object can '''not''' hear itself, to prevent problems with recursion.
|examples=<lsl>
|examples=<pre>
default {
default {
     state_entry()
     state_entry()
Line 20: Line 20:
     }
     }
}
}
</lsl>
</pre>
|helpers
|helpers
|also_events=*{{LSLG|listen}}
|also_events=*{{LSLG|listen}}

Revision as of 22:56, 20 February 2007

Summary

Function: llWhisper( integer channel, string msg );
0.0 Forced Delay
10.0 Energy

whispers the text supplied in string msg on channel supplied in integer channel.

• integer channel
• string msg

Caveats

Text can only be a maximum of 1024 bytes. Whispers can only be heard within 10 meters of the speaking object. An object can not hear itself, to prevent problems with recursion.

Examples

default {
    state_entry()
    {
        llWhisper(0,"This is an incredibly useless program." );
    }
}

See Also

Deep Notes

Signature

function void llWhisper( integer channel, string msg );