[Opensim-users] Combat HUD help :P

Jor3l Boa jor3l at foravatars.com
Tue Feb 15 18:21:07 UTC 2011


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:

--------------------------------------
default
{
    collision_start(integer i)
    {
        integer _type = llDetectedType(0);
        if(!(_type == ACTIVE && _type != AGENT))
             llOwnerSay(llDetectedName(0) + " bumped you with his avatar.");
        else {
            float vel = llVecMag(llDetectedVel(0));
            string name = llDetectedName(0);
            string owner = llKey2Name(llDetectedOwner(0));
            llOwnerSay("An object named '" + name + "' from " + owner + "
collided with you. (Velocity: " + (string)vel + ")");
        }
    }
}
-------------------------------------------

Only thing you can do is use sensors to simulate a shot until this got
fixed, and report to mantis :)

2011/2/15 Jawa Lunk <jawalunk at gmail.com>

>
> Very good idea!
>
> I just tried it, and OpenSim makes HUD attachments phantom as well...not
> sure if that even matters though...the HUD is simply displaying information
> it receives from the meter the avatar wears.
>
> There has to be a way to link up with the avatar collision, because it is
> obviously working to some degree, we don't walk through walls...
>
> its frustrating...
>
> There has to be something that triggers when an object comes in contact
> with
> an avatar.
>
> I even tried writing a script and placing it inside of the objects making
> phantom false LOL  no good...ha ha ha
>
> I'm getting desperate LOL
>
> I have a beautiful 25 region sim filled with 100's of buildings and props I
> have built over the years in SecondLife, just waiting for us ha ha ha
>
> It's a wasteland that is being wasted :P
>
> Does anyone have any other ideas for something that may work for combat?
> Really, it seems there has to be something that I can use in place of the
> detect collision that would trigger the script to remove health from the
> avatar?
> --
> View this message in context:
> http://opensim-users.2152040.n2.nabble.com/Combat-HUD-help-P-tp6011882p6028630.html
> Sent from the opensim-users mailing list archive at Nabble.com.
> _______________________________________________
> Opensim-users mailing list
> Opensim-users at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/opensim-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-users/attachments/20110215/ce16159c/attachment.html>


More information about the Opensim-users mailing list