OsAddAgentToGroup
From OpenSimulator
(Difference between revisions)
m (Change 0 to PUBLIC_CHANNEL) |
|||
Line 14: | Line 14: | ||
state_entry() | state_entry() | ||
{ | { | ||
− | llSay( | + | llSay(PUBLIC_CHANNEL, "Touch to use osAddAgentToGroup to add yourself to a group."); |
} | } | ||
Revision as of 11:31, 24 November 2020
osAddAgentToGroup(key AgentID, string GroupName, string RequestedRole)
| |
Prerequisites
| |
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(PUBLIC_CHANNEL, "Touch to use osAddAgentToGroup to add yourself to a group."); } touch_end(integer num) { key AgentID = llDetectedKey(0); osAddAgentToGroup(AgentID, GroupToJoin, RoleToJoin); } } |