Jump to content

how to tell which child prim is sat on?


ohn
 Share

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

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

Recommended Posts

default{    state_entry()    {        llLinkSitTarget(1,<0.0,0.0,0.3>,ZERO_ROTATION);        llLinkSitTarget(2,<0.0,0.0,0.3>,ZERO_ROTATION);        llLinkSitTarget(3,<0.0,0.0,0.3>,ZERO_ROTATION);    }        changed (integer change)    {        if (change & CHANGED_LINK)        {            integer i = llGetNumberOfPrims();            while(--i)            {                if(llAvatarOnLinkSitTarget(i))                {                    llSay(0,"Sitting on Prim " + (string)i);

} } } }}

 Edit:  Simplified  :smileytongue:

 

Link to comment
Share on other sites

  • 5 years later...

I have been searching and searching, as well as experimenting and experimenting on the reverse effect of this code my self.  But with no success.

 

What I am trying to ask is, How can you tell which prim you got off of with out the script setting off the rest?

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 2657 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...