Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Suppress object's name when using llSay()?

Catherine Dollinger
Registered User
Join date: 11 May 2007
Posts: 26
06-01-2007 09:29
Another strange question from a scripting noob (but getting wittier - I promise :) ): how can the object's name be suppressed when it sends output to chat? Usually the output starts with "<object>:" (or "<object whispers>:", respectively) but I found that eg. emoters don't say the object prefix (if I saw right). How can this be suppressed? Or am I completely wrong?
Milambus Oh
Registered User
Join date: 6 Apr 2007
Posts: 224
06-01-2007 09:37
Use a blank name in the prim doing the speaking?

llSetObjectName looks intresting.
http://lslwiki.net/lslwiki/wakka.php?wakka=llSetObjectName

From: someone
Calling llSetObjectName in an object worn as a HUD will change its name, but only while it is worn. In inventory, the name change will not be reflected. Taking it off and re-wearing the HUD is like renaming it back to what it was before your script renamed it.


Setting the name to blank, then using llSay would give you just a colon before the text output.. or if the message is less than 255 character, setting the name to the message to be output then using llSay(0, "";) should give you the colon at the end of the line.
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
06-01-2007 10:42
llSetObjectName("";);
llSay(0,"/me Hi there!";);

will give:

Hi there!