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

Justin Clark-Casey jjustincc at googlemail.com
Thu Sep 8 20:05:03 UTC 2011


This was an oversight.  The old behaviour should be back in git master 96a3b68

On 08/09/11 17:02, Garmin Kawaguichi wrote:
> 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
> _______________________________________________
> Opensim-users mailing list
> Opensim-users at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/opensim-users
>


-- 
Justin Clark-Casey (justincc)
http://justincc.org/blog
http://twitter.com/justincc



More information about the Opensim-users mailing list