|
Lorathana Eldrich
Registered User
Join date: 6 Apr 2006
Posts: 45
|
03-06-2007 20:09
Is this possible? I have been trying but its dirving me crazy I can't seem to get it right..
I've been trying with if
if (llGetOwnerKey(id) == llGetOwner()) { llSetObjectName(id); } } }
this is just the basic off the top of my head..can anyone tell me what I'm doing wrong with this one? lol please *begs*
|
|
DoteDote Edison
Thinks Too Much
Join date: 6 Jun 2004
Posts: 790
|
03-06-2007 21:16
on_rez(integer start_param) { llSetObjectName(llKey2Name(llGetOwner())); }
What you're doing wrong... first you're using llGetOwnerKey() rather than llGetOwner(). Technically, you can get the owner's key with either, but they are designed to be used in different ways. llGetOwnerKey() takes a UUID, and returns the owner of the object with that UUID. You don't need to do that because we have llGetOwner() which simply returns the key of the script's owner.
|
|
Lorathana Eldrich
Registered User
Join date: 6 Apr 2006
Posts: 45
|
03-06-2007 22:34
ooo thankyou I'll give that a try, now I think I understand
|