Checking if avatar is in the group

From SmartBots Developers Docs
Jump to: navigation, search

SB_AVATAR_GROUP command checks if avatar is a member of specific group. See SB_AVATAR_GROUP for more details.

touch_start(integer total_number) {
  // Check avatar group
  llMessageLinked(LINK_SET,SB_AVATAR_GROUP,"My group name",llDetectedKey(0));
// This event parses different replies from AdminBot    
link_message(integer sender,integer cmd, string data, key id) {
  // Group check results
  if(cmd==SB_GROUP_CHECKED) {
    llOwnerSay("Avatar "+(string)id+" group check result: "+data);