<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:΢ÈíÑźÚ
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
<div><div dir="ltr"><br><p class="ecxMsoNormal" id=""><span lang="EN-US" id="">Hi, OpenSim users and</span> Justin</p>
<p class="ecxMsoNormal" id=""><span lang="EN-US"> </span></p>
<p class="ecxMsoNormal" id="ecx"><span lang="EN-US" id="">I¡¯m a PhD student and my research focus on agent-based
simulation of crowd evacuation in fire emergency. Now I¡¯m trying to implement such
a simulation in OpenSim and I found the NPCs are really useful which can be
used to mimic the pedestrian behavior. So far I am able to create NPCs using
the script-based approach and make them moving around according to some
designed rules, but I still have some problems.</span></p><p class="ecxMsoNormal" id="ecx"><span lang="EN-US"><br></span></p>
<p class="ecxMsoNormal" id="ecx"><span lang="EN-US" id="">(1) I wander if the NPCs can be treated like
an object, which can be scripted? Now, I can only use a NPC List in the main
script to control several NPCs at once, and this leads to a lot of ¡°for-loop¡±. Is
it possible to make each NPC to have its own script, so that I can use the llRezObject
function in the main script to generate NPCs with script? </span></p><p class="ecxMsoNormal" id="ecxaeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown"><span lang="EN-US"><br></span></p>
<p class="ecxMsoNormal" id="ecxaeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown"><span lang="EN-US" id="">(2) When I click the NPC under the building
mode, the three axes appear as usual. But when I try to move the NPC by dragging
it along the axis, the NPC disappears once I release the mouse button. Moreover,
through the osGetAvatarList() function, I find the NPC is still in the region!
I wander is this a bug on the current NPC function, or did I do something
wrong?</span></p><p class="ecxMsoNormal" id="ecxaeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown"><span lang="EN-US"><br></span></p>
<p class="ecxMsoNormal" id="ecxaeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown"><span lang="EN-US">Could you please kindly help to solve my
problems? Any comments or suggestions would be highly appreciated.</span></p><p class="ecxMsoNormal" id="ecxaeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown"><span lang="EN-US"><br></span></p>
<p class="ecxMsoNormal"><span lang="EN-US">Many thanks for your attention and look
forward to your reply.</span></p>
<p class="ecxMsoNormal"><span lang="EN-US"> </span></p>
<p class="ecxMsoNormal"><span lang="EN-US">Best regards,</span></p>
<p class="ecxMsoNormal"><span lang="EN-US"> </span></p>
<p class="ecxMsoNormal"><span lang="EN-US">Tan Lu</span></p><div><span class="ecx239251004-09092010"></span><font size="2" face="Century Gothic"><span style="font-family:'Century Gothic';font-size:10pt" lang="EN-US">*****************************************************<br><font face="΢ÈíÑźÚ">Tan Lu<br>Institute of Space and Earth Information Science<br>Fok Ying Tung Remote Sensing Science Building<br></font></span></font><font size="2"><span style="font-family:'Century Gothic';font-size:10pt" lang="EN-US"><font face="΢ÈíÑźÚ">The Chinese University of Hong Kong<br>Shatin, Hong Kong<br>Tel: 852-2609 7257<br>Fax: 852- 2603 7470<br>Email: </font><a href="mailto:tanlu_0912@hotmail.com"><font face="΢ÈíÑźÚ">tanlu_0912@hotmail.com</font></a></span></font><font size="2"><span style="font-family:Verdana;font-size:10pt" lang="EN-US"><br></span></font></div> </div></div> </div></body>
</html>