OsAddAgentToGroup

From OpenSimulator

Revision as of 04:04, 21 November 2020 by Manni (Talk | contribs)

Jump to: navigation, search
osAddAgentToGroup(key AgentID, string GroupName, string RequestedRole)
Prerequisites
  • The Group must be created
  • You must have the Group UUID
  • Roles within the group must be defined (default has Everyone & Owners)
Threat Level None
Permissions No permissions specified
Extra Delay No function delay specified
Example(s)
//
// osAddAgentToGroup Script Example
//
 
string GroupToJoin = "Test Group";
string RoleToJoin = "Everyone";
 
default
{
    state_entry()
    {
        llSay(0,"Touch to use osAddAgentToGroup to add yourself to a group"); 
    }
 
    touch_end(integer num)
    {
        key AgentID = llDetectedKey(0);
        osAddAgentToGroup(AgentID, GroupToJoin, RoleToJoin);
    }
}
Personal tools
General
About This Wiki