[Opensim-users] User Key of a NPC; something changed

Garmin Kawaguichi garmin.kawaguichi at magalaxie.com
Thu Sep 8 16:02:45 UTC 2011


There is something changed about the user key transmitted to an attachment 
when it concerns a NPC.
The change is between ca9a054  2011/08/31 and 5521929  2011/09/07

Before in a script in an attachment, llGetOwner() returned the key of the 
NPC.
Now llGetOwner() returns the key of the creator of the attachment and of the 
script inside.
_____________________________

This is the test:
- I'm connected as Garmin Kawaguichi and I have the key 
e0f01712-6779-4474-9b55-d5073daf28c6.
- This is the first instruction of the script inside the attachment:
llSay(0, "I'm " + llKey2Name(llGetOwner()) + " and I have the key " + 
(string)llGetOwner());
The model with the attachment is saved with osOwnerSaveAppearance as 
NPCTest.
- The NPC is created with kNpc = osNpcCreate(sAvName, "Clone" + (string)i, 
<fX, fY, vPos.z + 2.5>, sAvName);

- With OpenSim 16638/ca9a054  2011/08/31
I'm NpcTest Clone1 and I have the key 615542f0-69ec-4810-8da2-24128db35702

- With OpenSim 16675/5521929  2011/09/07
I'm Garmin Kawaguichi and I have the key 
e0f01712-6779-4474-9b55-d5073daf28c6
_____________________________

Is it a bug and then ===>> Mantis or this is wanted by the development ?

Is there another way to know the NPC key (from an attachment) because 
without this key it is difficult to give autonomy to the NPC by script. For 
example when I want to give animation to the NPC, it's my avatar that is 
animated :)

GCI 




More information about the Opensim-users mailing list