Difference between revisions of "MySayOwner"
Jump to navigation
Jump to search
m |
|||
Line 19: | Line 19: | ||
|examples= | |examples= | ||
<lsl> | <lsl> | ||
mySayOwner("","Processing, please wait."); | |||
</lsl> | </lsl> | ||
//The owner sees just: 17:04 Processing, please wait.<br /> | //The owner sees just: 17:04 Processing, please wait.<br /> |
Revision as of 06:19, 21 January 2010
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: string mySayOwner( string objectName, string msg );
Like mySay but spoken to object owner only. Cleaner chat on a user's screen. Gives a less-cluttered, more professional looking output.
Returns a string
• string | objectName | |||
• string | msg |
<lsl> mySayOwner(string objectName, string msg) {
string name = llGetObjectName(); llSetObjectName(objectName); llOwnerSay("/me " + msg); llSetObjectName(name);
} </lsl> See also: mySay, Category:LSL_Chat
Examples
<lsl>
mySayOwner("","Processing, please wait.");
</lsl>
//The owner sees just: 17:04 Processing, please wait.
Notes
What this does:
Instead of users having their vision obscured by text like this covering half their screen:
[14:04] Animated Living Sofa Combo Couple & Solo 2.1e whispers: Lie F 1
They see just this:
[14:04] Lie F 1