<div>Well, is an OpenSim problem, tested with last official release (0.7.2) and SL (a simple collision detection), OpenSim detects nothing but SecondLie do work, try with the following script:<br><br></div><div>--------------------------------------</div>
<div>default</div><div>{</div><div> collision_start(integer i)</div><div> {</div><div> integer _type = llDetectedType(0);</div><div> if(!(_type == ACTIVE && _type != AGENT))</div><div> llOwnerSay(llDetectedName(0) + " bumped you with his avatar.");</div>
<div> else {</div><div> float vel = llVecMag(llDetectedVel(0));</div><div> string name = llDetectedName(0);</div><div> string owner = llKey2Name(llDetectedOwner(0));</div><div> llOwnerSay("An object named '" + name + "' from " + owner + " collided with you. (Velocity: " + (string)vel + ")");</div>
<div> }</div><div> }</div><div>}</div><div>-------------------------------------------<br><br>Only thing you can do is use sensors to simulate a shot until this got fixed, and report to mantis :)</div><br><div class="gmail_quote">
2011/2/15 Jawa Lunk <span dir="ltr"><<a href="mailto:jawalunk@gmail.com">jawalunk@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
Very good idea!<br>
<br>
I just tried it, and OpenSim makes HUD attachments phantom as well...not<br>
sure if that even matters though...the HUD is simply displaying information<br>
it receives from the meter the avatar wears.<br>
<br>
There has to be a way to link up with the avatar collision, because it is<br>
obviously working to some degree, we don't walk through walls...<br>
<br>
its frustrating...<br>
<br>
There has to be something that triggers when an object comes in contact with<br>
an avatar.<br>
<br>
I even tried writing a script and placing it inside of the objects making<br>
phantom false LOL no good...ha ha ha<br>
<br>
I'm getting desperate LOL<br>
<br>
I have a beautiful 25 region sim filled with 100's of buildings and props I<br>
have built over the years in SecondLife, just waiting for us ha ha ha<br>
<br>
It's a wasteland that is being wasted :P<br>
<br>
Does anyone have any other ideas for something that may work for combat?<br>
Really, it seems there has to be something that I can use in place of the<br>
detect collision that would trigger the script to remove health from the<br>
avatar?<br>
<font color="#888888">--<br>
View this message in context: <a href="http://opensim-users.2152040.n2.nabble.com/Combat-HUD-help-P-tp6011882p6028630.html" target="_blank">http://opensim-users.2152040.n2.nabble.com/Combat-HUD-help-P-tp6011882p6028630.html</a><br>
</font><div><div></div><div class="h5">Sent from the opensim-users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Opensim-users mailing list<br>
<a 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>
</div></div></blockquote></div><br>