<br><br><div class="gmail_quote">On Fri, Oct 14, 2011 at 2:26 PM, Ai Austin <span dir="ltr"><<a href="mailto:ai.ai.austin@gmail.com">ai.ai.austin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Recreating the avatars as required in scripts, as Marcus discussed, is far easier.<br>
</blockquote>
<br>
<br></div>
Marcus Llewellyn <<a href="mailto:marcus.llewellyn@gmail.com" target="_blank">marcus.llewellyn@gmail.com</a>><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
As far as sitting goes, the best I've been able to do is to attach a chair<br>
to the NPC, and use osAvatarPlayAnimation to perform a sit animation<br>
tailored to fit the situation. Not ideal, but it works.<br>
</blockquote>
<br>
Marcus.. do you have the scripts for this? Add them and a few lines of instruction maybe to the wiki at:<br>
<a href="http://opensimulator.org/wiki/OSSLNPC" target="_blank">http://opensimulator.org/wiki/<u></u>OSSLNPC</a><div><div></div><div class="h5"><br></div></div></blockquote><div><br></div><div>There really isn't anything to demonstrate where sitting is concerned. The NPC I used this with never moves or walks around, so I simply attached the chair to myself, and the chair gets copied over to the NPC's appearance. The NPC doesn't dynamically attach or reattach the chair on it's own. Its script simply creates the NPC with the chair already attached as part of its appearance, and then immediately has it play a sit animation.</div>
<div><br></div><div>The main problem I have with this is that the NPC's collision box can interfere with positioning, such as if you have the NPC sitting at a desk. The easiest thing to do is to simply phantom any obstacles the NPC might encounter.</div>
<div><br></div><div>I have provided a simple example of how I maintain NPC persistence across sim restarts on the wiki, though. You can find it at: <a href="http://opensimulator.org/wiki/User:Marcus_Llewellyn/NPC_Scripts">http://opensimulator.org/wiki/User:Marcus_Llewellyn/NPC_Scripts</a></div>
<div><br></div><div>I have other scripts I'm slowly working on, but I feel that they are too incomplete to share at this point. I'd be happy to contribute them to the wiki's script library eventually, though.</div>
<div><br></div><div>Marcus</div></div>