Difference between revisions of "AdminBot for LSL/Examples/Checking if avatar is in the group"
From SmartBots Developers Docs
m (Gg moved page AdminBot for Groups/Examples/Checking if avatar is in the group to AdminBot for LSL/Examples/Checking if avatar is in the group) |
|
(No difference)
|
Latest revision as of 13:11, 12 May 2017
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);
}
}