OsAddAgentToGroup

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(Created page with "{{osslfunc |threat_level=None |function_syntax=osAddAgentToGroup(key AgentID, string GroupName, string RequestedRole) |ossl_example=<source lang="lsl"> // // osAddAgentToGroup...")
 
 
Line 24: Line 24:
 
}
 
}
 
</source>
 
</source>
|description=// PREREQUISITES
+
|description=Prerequisites
// - The Group must be created
+
* The Group must be created
// - You must have the Group UUID
+
* You must have the Group UUID
// - Roles within the group must be defined (default has Everyone & Owners)
+
* Roles within the group must be defined (default has Everyone & Owners)
 
|
 
|
 
}}
 
}}

Latest revision as of 19:42, 23 October 2017

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
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