OsAddAgentToGroup

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 
{{osslfunc
 
{{osslfunc
 
|threat_level=None
 
|threat_level=None
|function_syntax=osAddAgentToGroup(key AgentID, string GroupName, string RequestedRole)
+
|function_syntax=osAgentSaveAppearance(key agentId, string notecard)
 +
|function_syntax=osAgentSaveAppearance(key agentId, string notecard, integer includeHuds)  
 
|ossl_example=<source lang="lsl">
 
|ossl_example=<source lang="lsl">
 
//
 
//
// osAddAgentToGroup Script Example
+
// osAgentSaveAppearance Script Example
 +
// GPLv3 license attributed to the Wizardry and Steamworks group at http://was.fm/opensim:npc
 +
// touch to save your XML to a notecard named appearance for use with NPC follower and NPC puppeteer script.
 
//
 
//
 
string GroupToJoin = "Test Group";
 
string RoleToJoin = "Everyone";
 
  
 
default
 
default
 
{
 
{
     state_entry()
+
     touch_start(integer num)
 
     {
 
     {
         llSay(0,"Touch to use osAddAgentToGroup to add yourself to a group");
+
         osAgentSaveAppearance(llDetectedKey(0), "appearance");
    }
+
   
+
    touch_end(integer num)
+
    {
+
        key AgentID = llDetectedKey(0);
+
        osAddAgentToGroup(AgentID, GroupToJoin, RoleToJoin);
+
 
     }
 
     }
 
}
 
}
 
</source>
 
</source>
|description=Prerequisites
+
 
* The Group must be created
+
* You must have the Group UUID
+
* Roles within the group must be defined (default has Everyone & Owners)
+
 
|
 
|
 
}}
 
}}

Revision as of 02:54, 21 November 2020

osAgentSaveAppearance(key agentId, string notecard, integer includeHuds)
No descriptions provided
Threat Level None
Permissions No permissions specified
Extra Delay No function delay specified
Example(s)
//
// osAgentSaveAppearance Script Example
// GPLv3 license attributed to the Wizardry and Steamworks group at http://was.fm/opensim:npc
// touch to save your XML to a notecard named appearance for use with NPC follower and NPC puppeteer script.
//
 
default
{
    touch_start(integer num)
    {
        osAgentSaveAppearance(llDetectedKey(0), "appearance");
    }
}
Personal tools
General
About This Wiki