JaslynMaia Posted April 7, 2021 Share Posted April 7, 2021 (edited) Hiya! So I'm trying to write a script that detects the object's group and say it in chat. I've done some searching around on the second life LSL Portal and tried llDetectedGroup and llSameGroup but I cant seem to get it to work? Help please? Ps. Its been awhile since I've done any scripting (^w^*) Quote llSay (0, "This object's group is" + OBJECT_GROUP + "! Blah blah blah"); ❤️ Edited April 7, 2021 by JaslynMaia forgot to add details Link to comment Share on other sites More sharing options...
Rolig Loon Posted April 7, 2021 Share Posted April 7, 2021 Try llGetObjectDetails(kObjectKey, [OBJECT_GROUP]); 1 Link to comment Share on other sites More sharing options...
Quistess Alpha Posted April 7, 2021 Share Posted April 7, 2021 You'll also probably want to convert the group key into something a human can use. One easy way to do that is to use the group's key as part of an SLURL. key kObjectKey = llGetKey(); // use this object just as an example key kGroupKey = llList2Key(llGetObjectDetails(kObjectKey, [OBJECT_GROUP]),0); llSay (0, "This object's group is: secondlife:///app/group/"+(string)kGroupKey+"/inspect ."); http://wiki.secondlife.com/wiki/Viewer_URI_Name_Space 2 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