Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llOwnerSay from a HUD

Zero Korpov
Registered User
Join date: 7 Jul 2009
Posts: 3
07-07-2009 11:13
I just *know* I'm missing something obvious here but it's driving me crazy trying to figure it out. I'm working on a radar type HUD attachment that periodically gives feedback using llOwnerSay, to tell me who's moving in and out of radar range for example.

My problem is purely cosmetic, but every time it says anything to me, the message is prefaced by the object name and a colon, e.g:

"[11:05] Zero's radar dev: New in chat range: Tarquin Kiranov[18m]"

I just want it to say to me in chat

"New in chat range: Tarquin Kiranov[18m]"

I know that this, or something similar can be done, because the Anthony Hocken's free Radar HUD v.1.1, and I'm sure lots of other things, do just this. Please someone put me out of my misery, what am I missing??
Faust Vollmar
llSetAgentSanity(FALSE);
Join date: 3 Feb 2007
Posts: 87
07-07-2009 11:27
The trick is to store it's current name, change it's name to the prefix you want to use, then change back to the stored name.
Zero Korpov
Registered User
Join date: 7 Jul 2009
Posts: 3
07-07-2009 11:35
aaaah! thanks a lot, my brain wasn't up to such lateral thinking today. you have saved my sanity for another day.
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
07-07-2009 12:03
If you want to eliminate any trace of the HUD's name, use Faust's trick, set the HUD's name temporarily to " ", and then be sure that the message itself starts with "/me ". That will get rid of the name AND the colon that follows it.
_____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask.... ;)

Look for my work in XStreetSL at
Zero Korpov
Registered User
Join date: 7 Jul 2009
Posts: 3
07-07-2009 13:12
even more cunning! thanks a lot guys :)
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
07-07-2009 13:13
you can also permanently set the name of a child prim for a similar effect...

and because name/description changes don't save back to inventory for worn items, you can change the name when it's worn, and not bother changing it back...

you can do this in the on_rez event after testing llGetAttached(), though I can't remember if you want to test it in the changed event (in case it's dropped to the ground)... dropped to the ground may cause the changes to stick.
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
07-07-2009 13:32
From: Void Singer
... and because name/description changes don't save back to inventory for worn items, you can change the name when it's worn, and not bother changing it back....

Now that's cool. I've made non-sticky name changes on worn items before, but I always figured that I had just screwed up and forgotten something. I never knew this was a feature of SL. Live and learn. :p
_____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask.... ;)

Look for my work in XStreetSL at
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
07-07-2009 17:48
From: Rolig Loon
Now that's cool. I've made non-sticky name changes on worn items before, but I always figured that I had just screwed up and forgotten something. I never knew this was a feature of SL. Live and learn. :p

not so much a feature as a known bug... couldn't tell you if they plan on actually ever fixing it, but it's been around since at least v1.19 IIRC
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -