Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //MH+ presents, Get avatar's currently active group UUID
- //join us! => https://discord.me/SLguru
- //visit my blog => https://sl-memo.blogspot.com/
- //指定したアバターの現在アクティブなグループのUUIDを取得するサンプルです
- default{
- touch_start(integer total_number){
- key id = llDetectedKey(0);
- list tempLIST = llGetAttachedList(id);
- string group;
- if(tempLIST){//Check only the first attachment
- group = llList2String(llGetObjectDetails(llList2Key(tempLIST,0), [OBJECT_GROUP]), 0);
- if(group != NULL_KEY){
- group = "UUID = " + group + " ( " + "secondlife:///app/group/"+group+"/about )";
- }else{
- group = "Not Set";
- }
- }else{
- group = "unknown";
- }
- llRegionSayTo(id,0,"The currently active group for " + llDetectedName(0) + " is " + group );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement