> > ---------- Forwarded message ---------- > From: "Garmin Kawaguichi" <[email protected]> > To: <[email protected]> > Date: Wed, 12 Oct 2011 09:10:02 +0200 > Subject: Re: [Opensim-users] Sitting an NPC > >> ----- Original Message ----- From: David Burden >> Sent: Thursday, October 13, 2011 5:03 AM >> Subject: [Opensim-users] Sitting an NPC >> >> I also can't get scripts in attachments to stay working once rezzed back >> out of the notecard - known problem or am I doing something wrong? >> > > I used a script on an object attached to an NPC: > > 1) Don't forget to attach the object to yourself before to create the > notecard :))) > > and 2) I've found a problem; to command an NPC we need to know its own key; > I noted that, in the script attached, knpc = llGetOwner() in the state_entry > returns my own key (the key of the object owner during the creation of the > attachment); to have the key of the NPC, I have inserted an llSleep(2.0) > before the llGetOwner() > > ah and 3) To debug the script attached to the NPC, we cannot use > llOwnerSay(...); use llShout(0, ...debugging_message...); > > GCI > > I also have had no issues with scripted attachments ( an AO) working on the NPC bots. I have generated 1000's of NPC bots without a failure...
I have filed a mantis on the GetOwner issue http://opensimulator.org/mantis/view.php?id=5724 As described in the mantis....if you set the UUID to the root of the linkset in the ATTACH event ..It will set properly for the NPC dz
_______________________________________________ Opensim-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/opensim-users
