Pages

Sunday, July 04, 2010

Hiding Object Name and Carriage Returns

So the topic came up of how to hide the name of the object when using llSay or llInstantMessage. Well as far as I know there is no way to completely get rid of the object name with llInstantMessage, as it will display as "(empty)" if there is nothing, but this way works great for llSay. Also, if you want to insert a carriage return into your string, you can use \n to make a new line.

llSetObjectName(""); //sets the name of the object to nothing
llSay(0, "This is some text \n and this will end up on the next line");
llSetObjectName("object"); //this is to set the name of the object back to what it was originally