Jump to content

Linked messages


Max Pitre
 Share

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

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

Recommended Posts

The first parameter of llMessageLinked is the prim the message will be sent to.

To account for changes in the prim numbering, the changed event tracks CHANGED_LINK. Whenever this happens, you can search for the correct prim again, for example by name, by looping through every prim in the linkset and comparing the name with the one you want.

Link to comment
Share on other sites

7 minutes ago, Wulfie Reanimator said:

 

To account for changes in the prim numbering, the changed event tracks CHANGED_LINK. Whenever this happens, you can search for the correct prim again, for example by name, by looping through every prim in the linkset and comparing the name with the one you want.

Oh goody, more coding to pull more hair out...Thanks, that does help.

Link to comment
Share on other sites

1 hour ago, Wulfie Reanimator said:

Whenever this happens, you can search for the correct prim again, for example by name, by looping through every prim in the linkset and comparing the name with the one you want.

The most likely scenario for a changed link is someone sitting on the thing or standing, which won't change the link number of anything else in the set. Might be better to just check that case (the last link is an avatar, may ways to check that, for example: if(llGetAgentSize(llGetLinkKey(llGetNumberOfPrims()))){} ) and reset the script (presumably causing the search you described, among other cleanups) in the less likely case the linkset is actually changed.

  • Like 1
Link to comment
Share on other sites

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