Jump to content

Detect Object Group


JaslynMaia
 Share

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

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

Recommended Posts

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 by JaslynMaia
forgot to add details
Link to comment
Share on other sites

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

  • Like 2
Link to comment
Share on other sites

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