Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Autodetect changed name

Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
01-08-2006 11:07
Is it possible?

I know I can do things like a timer to check what the name is, but unless I have to I'd rather not for obvious reasons!

I've got something where there's a root prim and a comms prim. If people change the name of the root prim (which I hope they WILL) I need to change the name of the comms prim ideally to match. There are ways to do that of course, with timers, or the various event triggers and llGetLinkName(), but I was wondering if there was a good general way similar to changed()?
Myspoonistoobig Laxness
Registered User
Join date: 3 Nov 2005
Posts: 15
01-09-2006 09:21
well, changed is an event handler. only so many event handlers exist,

http://secondlife.com/badgeo/wakka.php?wakka=events

and to my knowledge, there is no event that fires when the name is changed, so you'll have the use the other methods you metioned; just check the name periodically
Zepp Zaftig
Unregistered Abuser
Join date: 20 Mar 2005
Posts: 470
01-09-2006 09:31
Maybe you could set the name with with llSetObjectName via a listener. For example /1 setname newname could trigger the listen event where it could check if the first word was setname, if so change the name and do other stuff like send messages to the other prims with the new name.