Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llSetObjectName

Jodie Suisei
Lost In LSL Code
Join date: 6 Oct 2006
Posts: 66
10-02-2007 13:55
Using this i found on the wiki im trying to get the llSetObjectName to dynamically change object name to the owner of the object the reason for this is im making a chat relay system which is part of a much larger project for my partners business.

now im stuck with example scripts on the wiki and none of them really making sense to me lol.

now what i would like help with is if some one can put me in the right direction to how to get this command to then place the owners name and every time its placed out to reset itself this is the code i have so far for this smaller part of the project.


default
{
on_rez( integer sparam )
{
llResetScript();
}
state_entry()
{
llSetObjectName("";);
}
}


any information on filling in the missing information that i seem unable to find myself would be very much appreciated thank you :)
Lyn Mimistrobell
(waiting)
Join date: 11 Jan 2007
Posts: 179
10-02-2007 14:07
llSetObjectName(llKey2Name(llGetOwner()));

This should work, as long as the owner is in the same region (which is normally the case since the owner rezzes the object)
Jodie Suisei
Lost In LSL Code
Join date: 6 Oct 2006
Posts: 66
10-02-2007 14:56
thank you kindly for the response worked a treat now to wrack my brain more on the rest of what i was doing :)