Max Pitre Posted September 25, 2022 Share Posted September 25, 2022 (edited) Can llMessageLinked talk to a specific prim or script in the linkset? The linkset would also have different objects/prims added once in a while so keeping up with a link number would be an issue. Edited September 25, 2022 by Max Pitre Link to comment Share on other sites More sharing options...
Wulfie Reanimator Posted September 25, 2022 Share Posted September 25, 2022 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 More sharing options...
Max Pitre Posted September 25, 2022 Author Share Posted September 25, 2022 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 More sharing options...
Quistess Alpha Posted September 25, 2022 Share Posted September 25, 2022 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. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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