<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span>This seems like the behavior of a prim with the physical attribute active / checked. As a test rez a default cube and set the physical attribute and attempt to move,</span></div><div><br><span></span></div><div><span>I have no experience with NPC's.<br></span></div><div><br></div> <div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <font face="Arial" size="2"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> TanLu <tanlu_0912@hotmail.com><br> <b><span style="font-weight: bold;">To:</span></b> opensim-users@lists.berlios.de <br> <b><span style="font-weight: bold;">Sent:</span></b> Wednesday, December 7, 2011 4:30 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> [Opensim-users] Inquiry
about OpenSim NPC<br> </font> <br>
<div id="yiv1494628973">
<style><!--
#yiv1494628973 .yiv1494628973hmmessage P
{
margin:0px;padding:0px;}
#yiv1494628973 body.yiv1494628973hmmessage
{
font-size:10pt;}
--></style>
<div><div dir="ltr">
<div><div dir="ltr"><br><div class="yiv1494628973ecxMsoNormal" id="yiv1494628973"><span id="yiv1494628973" lang="EN-US">Hi, OpenSim users and</span> Justin</div>
<div class="yiv1494628973ecxMsoNormal" id="yiv1494628973"><span lang="EN-US"> </span></div>
<div class="yiv1494628973ecxMsoNormal" id="yiv1494628973ecx"><span id="yiv1494628973" lang="EN-US">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></div><div class="yiv1494628973ecxMsoNormal" id="yiv1494628973ecx"><span lang="EN-US"><br></span></div>
<div class="yiv1494628973ecxMsoNormal" id="yiv1494628973ecx"><span id="yiv1494628973" lang="EN-US">(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></div><div class="yiv1494628973ecxMsoNormal" id="yiv1494628973ecxaeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown"><span lang="EN-US"><br></span></div>
<div class="yiv1494628973ecxMsoNormal" id="yiv1494628973ecxaeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown"><span id="yiv1494628973" lang="EN-US">(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></div><div class="yiv1494628973ecxMsoNormal" id="yiv1494628973ecxaeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown"><span lang="EN-US"><br></span></div>
<div class="yiv1494628973ecxMsoNormal" id="yiv1494628973ecxaeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown"><span lang="EN-US">Could you please kindly help to solve my
problems? Any comments or suggestions would be highly appreciated.</span></div><div class="yiv1494628973ecxMsoNormal" id="yiv1494628973ecxaeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown"><span lang="EN-US"><br></span></div>
<div class="yiv1494628973ecxMsoNormal"><span lang="EN-US">Many thanks for your attention and look
forward to your reply.</span></div>
<div class="yiv1494628973ecxMsoNormal"><span lang="EN-US"> </span></div>
<div class="yiv1494628973ecxMsoNormal"><span lang="EN-US">Best regards,</span></div>
<div class="yiv1494628973ecxMsoNormal"><span lang="EN-US"> </span></div>
<div class="yiv1494628973ecxMsoNormal"><span lang="EN-US">Tan Lu</span></div><div><span class="yiv1494628973ecx239251004-09092010"></span><font face="Century Gothic" size="2"><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 rel="nofollow" ymailto="mailto:tanlu_0912@hotmail.com" target="_blank" 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></div>
</div><br>_______________________________________________<br>Opensim-users mailing list<br><a ymailto="mailto:Opensim-users@lists.berlios.de" href="mailto:Opensim-users@lists.berlios.de">Opensim-users@lists.berlios.de</a><br><a href="https://lists.berlios.de/mailman/listinfo/opensim-users" target="_blank">https://lists.berlios.de/mailman/listinfo/opensim-users</a><br><br><br> </div> </div> </div></body></html>