I am trying to put text below or above my avatar name. How do I use the script SetText and where do I get it? Or where I can find more info?
Thanks,
Cheryl
These forums are CLOSED. Please visit the new forums HERE
SetText |
|
CherylSue Snoodle
Registered User
Join date: 6 Aug 2008
Posts: 82
|
09-20-2008 07:01
I am trying to put text below or above my avatar name. How do I use the script SetText and where do I get it? Or where I can find more info?
Thanks, Cheryl |
Dante Tucker
Purple
![]() Join date: 8 Aug 2006
Posts: 806
|
09-20-2008 07:23
to understand llSetText, look at this.
----------------------------- string text = "YOUR TEXT GOES HERE"; default { state_entry() { llSetText(text,<1,1,1>,1); } } ----------------------------- For a more useful one use this that i threw together real quick. type "title" followed by your text to change it. ----------------------------- integer CommandIs(string msg,string cmd) { return llSubStringIndex(msg,cmd) == 0; } Parse(string cmd) { if (CommandIs(cmd,"title" ![]() { string name = llGetSubString(cmd,6,-1); if (name == "title" ![]() llSetText("",<0,1,0>,1.0); else llSetText(name,<0,1,0>,1.0); } } default { state_entry() { llListen(0,"",llGetOwner(),"" ![]() } on_rez(integer start_param) { llResetScript(); } listen(integer channel, string name, key id, string msg) { Parse(msg); } } ------------------------------ Also from the wiki http://wiki.secondlife.com/wiki/LlSetText |
CherylSue Snoodle
Registered User
Join date: 6 Aug 2008
Posts: 82
|
09-20-2008 07:41
Thank you!
|