WhiteCoreSim / WhiteCore-Dev

WhiteCoreSim - Software to create your own virtual world
BSD 3-Clause "New" or "Revised" License
26 stars 34 forks source link

Function llAvatarOnLinkSitTarget doesn't return avatar's key #297

Open tannoy1000 opened 6 years ago

tannoy1000 commented 6 years ago

Steps to reproduce

Link two prims and put this script inside. Script itself:

default { state_entry() { llLinkSitTarget(1,<0.0,0.0,0.5>,ZERO_ROTATION); llLinkSitTarget(2, <0.0,0.0,0.1>,ZERO_ROTATION); }

changed(integer change)
{
    if (change & CHANGED_LINK)
    {
        if (llAvatarOnLinkSitTarget(2) != NULL_KEY)
        {
            llSay(0, "Sitting on link 2: " + (string)(llAvatarOnLinkSitTarget(2)));
        }
        // Now pay attention to the avatar on the root prim.                                
        key agent = llAvatarOnLinkSitTarget(1);
        if (agent != NULL_KEY)
        {
            llSay(0, "Sitting on link 1: " + (string)(llAvatarOnLinkSitTarget(1)));
        }
    }
}

}

Expected behaviour

It should return avatar key id.

Actual behaviour

It returns "System.Collections.Generic.List`1[OpenMetaverse.UUID]". Tell us what happens instead

Server configuration

Standalone. Operating system: Windows10 64bit Web server:

Database: Sqlite. WhiteCore version: Current master.

Logs

No errors reported in region console.

greythane commented 6 years ago

Thanks for the report and particularly the script to check this out. I'll sort this one asap.

tannoy1000 commented 6 years ago

Tnx! This is function could be important for making some multi avatar sit scripts to work.