Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tannoy1000 opened this issue Jan 28, 2018 · 2 comments
Open

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

tannoy1000 opened this issue Jan 28, 2018 · 2 comments
Labels
Milestone

Comments

@tannoy1000
Copy link

tannoy1000 commented Jan 28, 2018

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.

@fly-man- fly-man- added the bug label Jan 28, 2018
@fly-man- fly-man- added this to the 0.9.5 milestone Jan 28, 2018
@greythane
Copy link
Member

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

@tannoy1000
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants