Jump to content

llAvatarOnLinkSitTarget returns only NULL_KEY


arton Rotaru
 Share

You are about to reply to a thread that has been inactive for 4632 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

What am I missing? It returns only NULL_KEY for me.

I know the wiki says it's not available yet, but it was listed in last weeks main server release notes already and llLinkSitTarget seems to work. Tried it on any server version with similar results.

 

default
{
    state_entry() {

        llLinkSitTarget(2, <0.37134, 2.53008, 0.24268>, <0.00005, -0.02685, 0.00004, 0.99964>);
    }

    changed(integer change) {

        if (change & CHANGED_LINK) {
            llOwnerSay((string)llAvatarOnLinkSitTarget(2));
        }
    }
}

 

Link to comment
Share on other sites

Well, I had bet all my L$ that this will be asked. :matte-motes-wink-tongue: Just joking :smileyhappy:

Yes, just to to make it as easy as possible to reproduce, I made a linkset of 2 prims, and I sit on the prim with the linknumber 2. The child prim.

Link to comment
Share on other sites

Yes, it is bugged, it can only return a good key for the prim the script is in.

Get two avatars and try this script in a two prim linkset.

First try, put it in the root, let both avatars try to sit. only the avatar sitting on the root prim has the key returned.

Second try, put the script in the child. Now, only the avatar sitting on the chils is reported.

 

default{    state_entry() {        llLinkSitTarget(1, <0., 0., 1.>, ZERO_ROTATION);        llLinkSitTarget(2, <0., 0., 1.>, ZERO_ROTATION);    }    changed(integer change) {        if (change & CHANGED_LINK)        {            llOwnerSay("----\n"                + (string)llAvatarOnLinkSitTarget(1)                + " "                + (string)llAvatarOnLinkSitTarget(2)            );        }    }}

 

 

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4632 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...