diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index 60a76fe99a..6c3237f225 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs @@ -5755,7 +5755,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api } } - public void osGiveLinkInventoryList(LSL_Integer linkNumber, LSL_Key destination, LSL_String category, LSL_List inventory) + public void osGiveLinkInventoryList(LSL_Integer linkNumber, LSL_Key destination, LSL_String folderName, LSL_List inventory) { if (inventory.Length == 0) return; @@ -5818,7 +5818,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api return; } - UUID folderID = m_ScriptEngine.World.MoveTaskInventoryItems(destID, category, part, itemList, false); + UUID folderID = m_ScriptEngine.World.MoveTaskInventoryItems(destID, folderName, part, itemList, false); if (folderID.IsZero()) { @@ -5841,7 +5841,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api GridInstantMessage msg = new(World, m_host.OwnerID, m_host.Name, destID, (byte)InstantMessageDialog.TaskInventoryOffered, - m_host.OwnerID.Equals(m_host.GroupID), string.Format("'{0}'", category), folderID, false, pos,bucket, false); + m_host.OwnerID.Equals(m_host.GroupID), string.Format("'{0}'", folderName), folderID, false, pos,bucket, false); m_TransferModule.SendInstantMessage(msg, delegate(bool success) {}); } diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs index af36123d0b..e9865e7b40 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs @@ -120,51 +120,82 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces void CheckThreatLevel(ThreatLevel level, string function); //OpenSim functions - string osSetDynamicTextureURL(string dynamicID, string contentType, string url, string extraParams, int timer); - string osSetDynamicTextureURLBlend(string dynamicID, string contentType, string url, string extraParams, - int timer, int alpha); - string osSetDynamicTextureURLBlendFace(string dynamicID, string contentType, string url, string extraParams, - bool blend, int disp, int timer, int alpha, int face); - string osSetDynamicTextureData(string dynamicID, string contentType, string data, string extraParams, int timer); - string osSetDynamicTextureDataFace(string dynamicID, string contentType, string data, string extraParams, int timer, int face); - string osSetDynamicTextureDataBlend(string dynamicID, string contentType, string data, string extraParams, - int timer, int alpha); - string osSetDynamicTextureDataBlendFace(string dynamicID, string contentType, string data, string extraParams, - bool blend, int disp, int timer, int alpha, int face); + //ApiDesc Generate a dynamic texture from a given URL, returns the texture UUID, applies to all faces. + string osSetDynamicTextureURL(string dynamicID, string contentType, string url, string extraParams, int timer); + //ApiDesc Generate a dynamic texture alpha blended from a given URL, returns the texture UUID, applies to all faces. + string osSetDynamicTextureURLBlend(string dynamicID, string contentType, string url, string extraParams, + int timer, int alpha); + //ApiDesc Generate a dynamic texture alpha blended from a given URL, returns the texture UUID, applies to a given face. + string osSetDynamicTextureURLBlendFace(string dynamicID, string contentType, string url, string extraParams, + bool blend, int disp, int timer, int alpha, int face); + //ApiDesc Generate a dynamic texture from a given draw string, returns the texture UUID, applies to all faces. + string osSetDynamicTextureData(string dynamicID, string contentType, string data, string extraParams, int timer); + //ApiDesc Generate a dynamic texture from a given draw string, returns the texture UUID, applies to a given face. + string osSetDynamicTextureDataFace(string dynamicID, string contentType, string data, string extraParams, int timer, int face); + //ApiDesc Generate a dynamic texture alpha blended from a given draw string, returns the texture UUID, applies to all faces. + string osSetDynamicTextureDataBlend(string dynamicID, string contentType, string data, string extraParams, + int timer, int alpha); + //ApiDesc Generate a dynamic texture alpha blended from a given draw string, returns the texture UUID, applies to a given face. + string osSetDynamicTextureDataBlendFace(string dynamicID, string contentType, string data, string extraParams, + bool blend, int disp, int timer, int alpha, int face); - LSL_Float osGetTerrainHeight(int x, int y); - LSL_Float osTerrainGetHeight(int x, int y); // Deprecated - LSL_Integer osSetTerrainHeight(int x, int y, double val); - LSL_Integer osTerrainSetHeight(int x, int y, double val); //Deprecated + //ApiDesc Returns the height of terrain at a given x and y coordinate (meters). + LSL_Float osGetTerrainHeight(int x, int y); + //ApiDesc DEPRECATED. Use osGetTerrainHeight instead. + LSL_Float osTerrainGetHeight(int x, int y); // Deprecated + //ApiDesc Set the terrain height at a given x and y coordinate (meters). + LSL_Integer osSetTerrainHeight(int x, int y, double val); + //ApiDesc DEPRECATED. Use osSetTerrainHeight instead. + LSL_Integer osTerrainSetHeight(int x, int y, double val); //Deprecated //ApiDesc Send terrain to all agents - void osTerrainFlush(); + void osTerrainFlush(); - int osRegionRestart(double seconds); - int osRegionRestart(double seconds, string msg); - void osRegionNotice(string msg); - void osRegionNotice(LSL_Key agentID, string msg); - bool osConsoleCommand(string Command); - void osSetParcelMusicURL(LSL_String url); - void osSetParcelMediaURL(LSL_String url); - void osSetPrimFloatOnWater(int floatYN); - void osSetParcelSIPAddress(string SIPAddress); + //ApiDesc Schedule a region restart seconds in the future. + int osRegionRestart(double seconds); + //ApiDesc Schedule a region restart with broadcast message seconds in the future. + int osRegionRestart(double seconds, string msg); + //ApiDesc Send a notice message to all avatars in the region. + void osRegionNotice(string msg); + //ApiDesc Send a notice message to a given avatar in the region. + void osRegionNotice(LSL_Key agentID, string msg); + //ApiDesc Execute a console command. + bool osConsoleCommand(string Command); + //ApiDesc Sets the current parcel music URL. + void osSetParcelMusicURL(LSL_String url); + //ApiDesc Sets the current parcel media URL. + void osSetParcelMediaURL(LSL_String url); + //ApiDesc Sets whether the object should float on water. + void osSetPrimFloatOnWater(int floatYN); + //ApiDesc Sets the voice module SIP address to a given address. + void osSetParcelSIPAddress(string SIPAddress); // Avatar Info Commands - LSL_List osGetAgents(); - string osGetAgentIP(string agent); + //ApiDesc Returns a list of avatars in the current region. + LSL_List osGetAgents(); + //ApiDesc Returns the IP address of a given avatar. + string osGetAgentIP(string agent); // Teleport commands - void osLocalTeleportAgent(LSL_Key agent, LSL_Types.Vector3 position, LSL_Types.Vector3 velocity, LSL_Types.Vector3 lookat, LSL_Integer flags); - void osTeleportAgent(string agent, string regionName, LSL_Types.Vector3 position, LSL_Types.Vector3 lookat); - void osTeleportAgent(string agent, int regionX, int regionY, LSL_Types.Vector3 position, LSL_Types.Vector3 lookat); - void osTeleportAgent(string agent, LSL_Types.Vector3 position, LSL_Types.Vector3 lookat); - void osTeleportOwner(string regionName, LSL_Types.Vector3 position, LSL_Types.Vector3 lookat); - void osTeleportOwner(int regionX, int regionY, LSL_Types.Vector3 position, LSL_Types.Vector3 lookat); - void osTeleportOwner(LSL_Types.Vector3 position, LSL_Types.Vector3 lookat); + //ApiDesc Teleport a given avatar (key) to a given position and rotation as look at vector with a velocity vector and teleport flags. + void osLocalTeleportAgent(LSL_Key agent, LSL_Types.Vector3 position, LSL_Types.Vector3 velocity, LSL_Types.Vector3 lookat, LSL_Integer flags); + //ApiDesc Teleport a given avatar (key) to a given region by name and local position and rotatation as look at vector. + void osTeleportAgent(string agent, string regionName, LSL_Types.Vector3 position, LSL_Types.Vector3 lookat); + //ApiDesc Teleport a given avatar (key) to a given region by grid position and local position and rotation as look at vector. + void osTeleportAgent(string agent, int regionX, int regionY, LSL_Types.Vector3 position, LSL_Types.Vector3 lookat); + //ApiDesc Teleport a given avatar (key) to a given position and rotation as look at vector. + void osTeleportAgent(string agent, LSL_Types.Vector3 position, LSL_Types.Vector3 lookat); + //ApiDesc Teleport the object owner to a given region by name and local position and rotation as look at vector. + void osTeleportOwner(string regionName, LSL_Types.Vector3 position, LSL_Types.Vector3 lookat); + //ApiDesc Teleport the object owner to a given region by grid position and local position and rotation as look at vector. + void osTeleportOwner(int regionX, int regionY, LSL_Types.Vector3 position, LSL_Types.Vector3 lookat); + //ApiDesc Teleport the object owner to a given position and rotation as look at vector. + void osTeleportOwner(LSL_Types.Vector3 position, LSL_Types.Vector3 lookat); // Animation commands - void osAvatarPlayAnimation(LSL_Key avatarId, string animation); - void osAvatarStopAnimation(LSL_Key avatarId, string animation); + //ApiDesc Forcefully plays a given animation for a given avatar bypassing animation permissions. + void osAvatarPlayAnimation(LSL_Key avatarId, string animation); + //ApiDesc Forcefully stops a given animation for a given avatar bypassing animation permissions. + void osAvatarStopAnimation(LSL_Key avatarId, string animation); #region Attachment commands @@ -172,7 +203,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces /// Attach the object containing this script to the avatar that owns it without asking for PERMISSION_ATTACH /// /// The attachment point. For example, ATTACH_CHEST - void osForceAttachToAvatar(int attachment); + //ApiDesc Forcefully attaches the object containing this script to the object owner bypassing attach permissions. + void osForceAttachToAvatar(int attachment); /// /// Attach an inventory item in the object containing this script to the avatar that owns it without asking for PERMISSION_ATTACH @@ -182,7 +214,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces /// /// Tha name of the item. If this is not found then a warning is said to the owner /// The attachment point. For example, ATTACH_CHEST - void osForceAttachToAvatarFromInventory(string itemName, int attachment); + //ApiDesc Forcefully attaches an object from the inventory of the object containing this script to the object owner bypassing attach permissions. + void osForceAttachToAvatarFromInventory(string itemName, int attachment); /// /// Attach an inventory item in the object containing this script to any avatar in the region without asking for PERMISSION_ATTACH @@ -193,13 +226,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces /// The UUID of the avatar to which to attach. Nothing happens if this is not a UUID /// The name of the item. If this is not found then a warning is said to the owner /// The attachment point. For example, ATTACH_CHEST - void osForceAttachToOtherAvatarFromInventory(string rawAvatarId, string itemName, int attachmentPoint); + //ApiDesc Forcefully attaches an object from the inventory of the object containing this script to a given attachment point of a given avatar bypassing attach permissions. + void osForceAttachToOtherAvatarFromInventory(string rawAvatarId, string itemName, int attachmentPoint); /// /// Detach the object containing this script from the avatar it is attached to without checking for PERMISSION_ATTACH /// /// Nothing happens if the object is not attached. - void osForceDetachFromAvatar(); + //ApiDesc Forcefully detach the object containing this script from the avatar it is attached to bypassing attach permissions. + void osForceDetachFromAvatar(); /// /// Returns a strided list of the specified attachment points and the number of attachments on those points. @@ -207,7 +242,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces /// avatar UUID /// list of ATTACH_* constants /// - LSL_List osGetNumberOfAttachments(LSL_Key avatar, LSL_List attachmentPoints); + //ApiDesc Returns the number of attachments attached to a list of attachment points of a given avatar. + LSL_List osGetNumberOfAttachments(LSL_Key avatar, LSL_List attachmentPoints); /// /// Sends a specified message to the specified avatar's attachments on @@ -220,137 +256,216 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces /// message string /// list of ATTACH_* constants, or -1 for all attachments. If -1 is specified and OS_ATTACH_MSG_INVERT_POINTS is present in flags, no action is taken. /// flags further constraining the attachments to deliver the message to. - void osMessageAttachments(LSL_Key avatar, string message, LSL_List attachmentPoints, int flags); + //ApiDesc Sends a message as dataserver event to a given attachment based on the avatar key and attachment point. Can be constrained further with options. + void osMessageAttachments(LSL_Key avatar, string message, LSL_List attachmentPoints, int flags); #endregion //texture draw functions - string osMovePen(string drawList, int x, int y); - string osDrawLine(string drawList, int startX, int startY, int endX, int endY); - string osDrawLine(string drawList, int endX, int endY); - string osDrawText(string drawList, string text); - string osDrawEllipse(string drawList, int width, int height); - string osDrawFilledEllipse(string drawList, int width, int height); - string osDrawRectangle(string drawList, int width, int height); - string osDrawFilledRectangle(string drawList, int width, int height); - string osDrawPolygon(string drawList, LSL_List x, LSL_List y); - string osDrawFilledPolygon(string drawList, LSL_List x, LSL_List y); - string osDrawResetTransform(string drawList); - string osDrawRotationTransform(string drawList, LSL_Float x); - string osDrawScaleTransform(string drawList, LSL_Float x, LSL_Float y); - string osDrawTranslationTransform(string drawList, LSL_Float x, LSL_Float y); - string osSetFontName(string drawList, string fontName); - string osSetFontSize(string drawList, int fontSize); - string osSetPenSize(string drawList, int penSize); - string osSetPenColor(string drawList, string color); - string osSetPenColor(string drawList, LSL_Types.Vector3 color); - string osSetPenColor(string drawList, LSL_Types.Vector3 color, LSL_Float alpha); - string osSetPenColour(string drawList, string colour); // Deprecated - string osSetPenCap(string drawList, string direction, string type); - string osDrawImage(string drawList, int width, int height, string imageUrl); - vector osGetDrawStringSize(string contentType, string text, string fontName, int fontSize); + //ApiDesc Move the drawing position to a given coordinate (pixels x y). + string osMovePen(string drawList, int x, int y); + //ApiDesc Draws a line from a starting coordinate (pixels x y) to a target position. + string osDrawLine(string drawList, int startX, int startY, int endX, int endY); + //ApiDesc Draws a line from the current drawing position to a target position (pixels x y). + string osDrawLine(string drawList, int endX, int endY); + //ApiDesc Draws a given string as text at the current drawing position. Text extends right and downwards. + string osDrawText(string drawList, string text); + //ApiDesc Appends an ellipse drawing command to the string provided in drawList and returns the result.\nThe ellipse is drawn with the current pen size and color on the x,y point pairs that comes from LSL list. + string osDrawEllipse(string drawList, int width, int height); + //ApiDesc Appends a filled ellipse drawing command to the string provided in drawList and returns the result.\nThe ellipse is drawn with the current pen size and color on the x,y point pairs that comes from LSL list. + string osDrawFilledEllipse(string drawList, int width, int height); + //ApiDesc Appends a rectangle drawing command to the string provided in drawList and returns the result.\nThe rectangle is drawn with the current pen size and color on the x,y point pairs that comes from LSL list. + string osDrawRectangle(string drawList, int width, int height); + //ApiDesc Appends a filled rectangle drawing command to the string provided in drawList and returns the result.\nThe rectangle is drawn with the current pen size and color on the x,y point pairs that comes from LSL list. + string osDrawFilledRectangle(string drawList, int width, int height); + //ApiDesc Appends a polygon drawing command to the string provided in drawList and returns the result.\nThe polygon is drawn with the current pen size and color on the x,y point pairs that comes from LSL list. + string osDrawPolygon(string drawList, LSL_List x, LSL_List y); + //ApiDesc Appends a filled polygon drawing command to the string provided in drawList and returns the result.\nThe polygon is drawn with the current pen size and color on the x,y point pairs that comes from LSL list. + string osDrawFilledPolygon(string drawList, LSL_List x, LSL_List y); + //ApiDesc Reset all transforms. + string osDrawResetTransform(string drawList); + //ApiDesc Appends a rotation transform drawing command to the string provided in drawList and returns the result. + string osDrawRotationTransform(string drawList, LSL_Float x); + //ApiDesc Appends a scale transform drawing command to the string provided in drawList and returns the result. + string osDrawScaleTransform(string drawList, LSL_Float x, LSL_Float y); + //ApiDesc Appends a translation transform drawing command to the string provided in drawList and returns the result. + string osDrawTranslationTransform(string drawList, LSL_Float x, LSL_Float y); + //ApiDesc Set the name of the font that will be used by osDrawText.\n- Threat Level: Not Checked. + string osSetFontName(string drawList, string fontName); + //ApiDesc Sets the size of the font used by subsequent osDrawTextText() calls. The fontSize parameter represents the font height in points. + string osSetFontSize(string drawList, int fontSize); + //ApiDesc Sets the pen size to a square of penSize pixels by penSize pixels. If penSize is an odd number, the pen will be exactly centered on the coordinates provided in the various drawing commands. + string osSetPenSize(string drawList, int penSize); + //ApiDesc This sets the drawing color to either a named .NET color, a 32-bit color value (formatted as eight hexadecimal digits in the format aarrggbb, representing the eight-bit alpha, red, green and blue channels) or a LSL vector color and alpha float value. + string osSetPenColor(string drawList, string color); + //ApiDesc This sets the drawing color to either a named .NET color, a 32-bit color value (formatted as eight hexadecimal digits in the format aarrggbb, representing the eight-bit alpha, red, green and blue channels) or a LSL vector color and alpha float value. + string osSetPenColor(string drawList, LSL_Types.Vector3 color); + //ApiDesc This sets the drawing color to either a named .NET color, a 32-bit color value (formatted as eight hexadecimal digits in the format aarrggbb, representing the eight-bit alpha, red, green and blue channels) or a LSL vector color and alpha float value. + string osSetPenColor(string drawList, LSL_Types.Vector3 color, LSL_Float alpha); + //ApiDesc DEPRECATED. Use osSetPenColor instead. + string osSetPenColour(string drawList, string colour); // Deprecated + //ApiDesc Sets the start, end or both caps to either "diamond", "arrow", "round", or default "flat" shape. + string osSetPenCap(string drawList, string direction, string type); + //ApiDesc Draw a given image from URL or asset uuid with given width and height at the current draw position. + string osDrawImage(string drawList, int width, int height, string image); + //ApiDesc Returns a vector containing the horizontal and vertical dimensions in pixels of the specified text, if drawn in the specified font and at the specified point size. The horizontal extent is returned in the .x component of the vector, and the vertical extent is returned in .y. The .z component is not used. + vector osGetDrawStringSize(string contentType, string text, string fontName, int fontSize); - void osSetRegionWaterHeight(double height); - void osSetRegionSunSettings(bool useEstateSun, bool sunFixed, double sunHour); - void osSetEstateSunSettings(bool sunFixed, double sunHour); - LSL_Float osGetCurrentSunHour(); - LSL_Float osGetSunParam(LSL_String param); - double osSunGetParam(string param); // Deprecated - void osSetSunParam(string param, double value); - void osSunSetParam(string param, double value); // Deprecated + //ApiDesc Set the water height of the region. + void osSetRegionWaterHeight(double height); + //ApiDesc Set whether to use estate sun, sun type (fixed, daycycle) and time offset for the region. + void osSetRegionSunSettings(bool useEstateSun, bool sunFixed, double sunHour); + //ApiDesc Set sun type (fixed, daycycle) and time offset for the estate sun. + void osSetEstateSunSettings(bool sunFixed, double sunHour); + //ApiDesc Returns the current region sun hour as float (24 hour clock). + LSL_Float osGetCurrentSunHour(); + //ApiDesc Returns parameters about the skybox. + LSL_Float osGetSunParam(LSL_String param); + //ApiDesc DEPRECATED. Use osGetSunParam instead. + double osSunGetParam(string param); // Deprecated + //ApiDesc Not implemented. + void osSetSunParam(string param, double value); + //ApiDesc DEPRECATED. Use osSetSunParam instead. + void osSunSetParam(string param, double value); // Deprecated // Wind Module Functions - string osWindActiveModelPluginName(); - void osSetWindParam(string plugin, string param, LSL_Float value); - LSL_Float osGetWindParam(string plugin, string param); + //ApiDesc Returns the name of the currently enabled wind plugin. + string osWindActiveModelPluginName(); + //ApiDesc Set a parameter in a given wind plugin. + void osSetWindParam(string plugin, string param, LSL_Float value); + //ApiDesc Get a parameter from a given wind plugin. + LSL_Float osGetWindParam(string plugin, string param); // Parcel commands - LSL_Integer osGetParcelDwell(vector pos); - void osParcelJoin(vector pos1, vector pos2); - void osParcelSubdivide(vector pos1, vector pos2); - void osSetParcelDetails(vector pos, LSL_List rules); - void osParcelSetDetails(vector pos, LSL_List rules); // Deprecated + //ApiDesc Returns the number of visitors to the region since start. + LSL_Integer osGetParcelDwell(vector pos); + //ApiDesc Joins a parcel with another based on positions within both parcels as vectors. + void osParcelJoin(vector pos1, vector pos2); + //ApiDesc Subdivides a parcel as rectangle given a start and end position as vector. + void osParcelSubdivide(vector pos1, vector pos2); + //ApiDesc Sets PARCEl_FLAGS for a parcel given a vector inside the parcel. + void osSetParcelDetails(vector pos, LSL_List rules); + //ApiDesc DEPRECATED. Use osSetParcelDetails instead. + void osParcelSetDetails(vector pos, LSL_List rules); // Deprecated - string osGetScriptEngineName(); - string osGetSimulatorVersion(); - LSL_Integer osCheckODE(); - string osGetPhysicsEngineType(); - string osGetPhysicsEngineName(); + //ApiDesc Returns the name of the active script engine. + string osGetScriptEngineName(); + //ApiDesc Returns the version information of the current simulator. + string osGetSimulatorVersion(); + LSL_Integer osCheckODE(); + //ApiDesc Returns the type of the currently enabled physics engine. + string osGetPhysicsEngineType(); + //ApiDesc Returns the name of the currently enabled physics engine. + string osGetPhysicsEngineName(); - void osMessageObject(key objectUUID,string message); + //ApiDesc Directly send a message as dataserver event to a given object by its key. + void osMessageObject(key objectUUID, string message); - void osMakeNotecard(string notecardName, LSL_String contents); - void osMakeNotecard(string notecardName, LSL_List contents); + //ApiDesc Creates a new notecard in the primitive inventory with given contents. + void osMakeNotecard(string notecardName, LSL_String contents); + //ApiDesc Creates a new notecard in the primitive inventory with given contents. + void osMakeNotecard(string notecardName, LSL_List contents); - string osGetNotecardLine(string name, int line); - string osGetNotecard(string name); - int osGetNumberOfNotecardLines(string name); + //ApiDesc Directly returns a given line of a notecard in the primitive inventory. + string osGetNotecardLine(string name, int line); + //ApiDesc Directly returns the entire contents of a given notecard as a string. + string osGetNotecard(string name); + //ApiDesc Returns the number of lines of a given notecard. + int osGetNumberOfNotecardLines(string name); - string osAvatarName2Key(string firstname, string lastname); - string osKey2Name(string id); - string osSHA256(string input); + //ApiDesc Returns the avatar key, based on their first and last name. + string osAvatarName2Key(string firstname, string lastname); + //ApiDesc Returns the avatar name given their key. + string osKey2Name(string id); + //ApiDesc Returns the SHA256 representation of the input string. + string osSHA256(string input); // Grid Info Functions - string osGetGridNick(); - string osGetGridName(); - string osGetGridLoginURI(); - string osGetGridHomeURI(); - string osGetGridGatekeeperURI(); - string osGetGridCustom(string key); - - string osGetAvatarHomeURI(string uuid); + //ApiDesc Returns the grid nick of the current grid. + string osGetGridNick(); + //ApiDesc Returns the grid name of the current grid. + string osGetGridName(); + //ApiDesc Returns the login URI of the current grid. + string osGetGridLoginURI(); + //ApiDesc Returns the home URI of the current grid. + string osGetGridHomeURI(); + //ApiDesc Returns the gatekeeper URI of the current grid. + string osGetGridGatekeeperURI(); + //ApiDesc Returns custom grid information based on input key. + string osGetGridCustom(string key); + //ApiDesc Tries to determine the home grid URI of an avatar. + string osGetAvatarHomeURI(string uuid); + //ApiDesc Fills a given strings placeholders {%d} with the entries of the given list. LSL_String osFormatString(string str, LSL_List strings); - LSL_List osMatchString(string src, string pattern, int start); + //ApiDesc Returns a list of matches from a given string from a given start. + LSL_List osMatchString(string src, string pattern, int start); + //ApiDesc Returns a string with replaced substrings given a match pattern from a given start for a given number of matches. LSL_String osReplaceString(string src, string pattern, string replace, int count, int start); // Information about data loaded into the region - string osLoadedCreationDate(); - string osLoadedCreationTime(); - string osLoadedCreationID(); + //ApiDesc Returns the creation date of the loaded region scene data. + string osLoadedCreationDate(); + //ApiDesc Returns the creation time of the loaded region scene data. + string osLoadedCreationTime(); + //ApiDesc Returns the original region UUID of the loaded region scene data. + string osLoadedCreationID(); - LSL_List osGetLinkPrimitiveParams(int linknumber, LSL_List rules); + //ApiDesc Returns a list of the primitive parameters given its link number. + LSL_List osGetLinkPrimitiveParams(int linknumber, LSL_List rules); /// /// Identical to llCreateLink() but does not require permission from the owner. /// /// /// - void osForceCreateLink(string target, int parent); + //ApiDesc Add a link to a linkset bypassing object owner permissions. + void osForceCreateLink(string target, int parent); /// /// Identical to llBreakLink() but does not require permission from the owner. /// /// - void osForceBreakLink(int linknum); + //ApiDesc Break a link of a linkset bypassing object owner permissions. + void osForceBreakLink(int linknum); /// /// Identical to llBreakAllLinks() but does not require permission from the owner. /// - void osForceBreakAllLinks(); + //ApiDesc Break all links of a linkset bypassing object owner permissions. + void osForceBreakAllLinks(); /// /// Similar to llDie but given an object UUID /// /// - - void osDie(LSL_Key objectUUID); + //ApiDesc Similar to llDie, but works on a given object UUID. + void osDie(LSL_Key objectUUID); /// /// Check if the given key is an npc /// /// /// TRUE if the key belongs to an npc in the scene. FALSE otherwise. - LSL_Integer osIsNpc(LSL_Key npc); + //ApiDesc Returns an integer whether a given key is an NPC or avatar. + LSL_Integer osIsNpc(LSL_Key npc); - key osNpcCreate(string user, string name, vector position, string notecard); - key osNpcCreate(string user, string name, vector position, string notecard, int options); - LSL_Key osNpcSaveAppearance(key npc, LSL_String notecard); - LSL_Key osNpcSaveAppearance(key npc, LSL_String notecard, LSL_Integer includeHuds); - void osNpcLoadAppearance(key npc, string notecard); - vector osNpcGetPos(key npc); - void osNpcMoveTo(key npc, vector position); - void osNpcMoveToTarget(key npc, vector target, int options); + //ApiDesc Creates a new NPC with a given name at a given position using a supplied notecard for appearance. + key osNpcCreate(string user, string name, vector position, string notecard); + //ApiDesc Creates a new NPC with a given name at a given position using a supplied notecard for appearance and additional options. + key osNpcCreate(string user, string name, vector position, string notecard, int options); + //ApiDesc Creates a new notecard with a given name from a given NPC (key). + LSL_Key osNpcSaveAppearance(key npc, LSL_String notecard); + //ApiDesc Creates a new notecard with a given name from a given NPC (key) with the option to include HUDs. + LSL_Key osNpcSaveAppearance(key npc, LSL_String notecard, LSL_Integer includeHuds); + //ApiDesc Loads a given appearance notecard to a given NPC (key). + void osNpcLoadAppearance(key npc, string notecard); + //ApiDesc Returns the position of a given NPC (key). + vector osNpcGetPos(key npc); + //ApiDesc Moves a given NPC (key) to a position. + void osNpcMoveTo(key npc, vector position); + //ApiDesc Sets a target for a given NPC (key) to move towards. + void osNpcMoveToTarget(key npc, vector target, int options); /// /// Get the owner of the NPC @@ -359,74 +474,129 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces /// /// The owner of the NPC for an owned NPC. The NPC's agent id for an unowned NPC. UUID.Zero if the key is not an npc. /// - LSL_Key osNpcGetOwner(key npc); + //ApiDesc Returns the owner key of a given NPC. NULL_KEY if the NPC is unowned. + LSL_Key osNpcGetOwner(key npc); + + //ApiDesc Returns the current rotation of a given NPC (key). + rotation osNpcGetRot(key npc); - rotation osNpcGetRot(key npc); + //ApiDesc Sets the rotation of a given NPC (key). + void osNpcSetRot(LSL_Key npc, rotation rot); + //ApiDesc Removes the target a given NPC (key) is moving towards. + void osNpcStopMoveToTarget(LSL_Key npc); + //ApiDesc Sets a given NPC (key) profile about text to a given string. + void osNpcSetProfileAbout(LSL_Key npc, string about); + //ApiDesc Sets a given NPC (key) profile image to a given image (asset UUID). + void osNpcSetProfileImage(LSL_Key npc, string image); + //ApiDesc Instructs a given NPC (key) to say a given message. + void osNpcSay(key npc, string message); + //ApiDesc Instructs a given NPC (key) to say a given message on a given channel. + void osNpcSay(key npc, int channel, string message); + //ApiDesc Instructs a given NPC (key) to say to a given avatar (key) a given message on a given channel. + void osNpcSayTo(LSL_Key npc, LSL_Key target, int channel, string msg); + //ApiDesc Instructs a given NPC (key) to shout a given message on a given channel. + void osNpcShout(key npc, int channel, string message); + //ApiDesc Instructs a given NPC (key) to sit on a given object (UUID). + void osNpcSit(key npc, key target, int options); + //ApiDesc Instructs a given NPC (key) to stand up. + void osNpcStand(LSL_Key npc); + //ApiDesc Removes a given NPC (key). + void osNpcRemove(key npc); + //ApiDesc Instructs a given NPC (key) to play a given animation (name) from the inventory of the object containing the script. + void osNpcPlayAnimation(LSL_Key npc, string animation); + //ApiDesc Instructs a given NPC (key) to stop playing a given animation (name). + void osNpcStopAnimation(LSL_Key npc, string animation); + //ApiDesc Instructs a given NPC (key) to touch a given object (UUID) and link. + void osNpcTouch(LSL_Key npcLSL_Key, LSL_Key object_key, LSL_Integer link_num); + //ApiDesc Instructs a given NPC (key) to whisper a given message on a given channel. + void osNpcWhisper(key npc, int channel, string message); - void osNpcSetRot(LSL_Key npc, rotation rot); - void osNpcStopMoveToTarget(LSL_Key npc); - void osNpcSetProfileAbout(LSL_Key npc, string about); - void osNpcSetProfileImage(LSL_Key npc, string image); - void osNpcSay(key npc, string message); - void osNpcSay(key npc, int channel, string message); - void osNpcSayTo(LSL_Key npc, LSL_Key target, int channel, string msg); - void osNpcShout(key npc, int channel, string message); - void osNpcSit(key npc, key target, int options); - void osNpcStand(LSL_Key npc); - void osNpcRemove(key npc); - void osNpcPlayAnimation(LSL_Key npc, string animation); - void osNpcStopAnimation(LSL_Key npc, string animation); - void osNpcTouch(LSL_Key npcLSL_Key, LSL_Key object_key, LSL_Integer link_num); - void osNpcWhisper(key npc, int channel, string message); + //ApiDesc Save appearance of object owner to a notecard in the primitive inventory. + LSL_Key osOwnerSaveAppearance(LSL_String notecard); + //ApiDesc Save appearance of object owner (with the choice to include Huds or no) to a notecard in the primitive inventory. + LSL_Key osOwnerSaveAppearance(LSL_String notecard, LSL_Integer includeHuds); + //ApiDesc Save appearance of an avatar to a notecard in the primitive inventory. + LSL_Key osAgentSaveAppearance(key agentId, LSL_String notecard); + //ApiDesc Save appearance of an avatar (with the choice to include Huds or no) to a notecard in the primitive inventory. + LSL_Key osAgentSaveAppearance(key agentId, LSL_String notecard, LSL_Integer includeHuds); - LSL_Key osOwnerSaveAppearance(LSL_String notecard); - LSL_Key osOwnerSaveAppearance(LSL_String notecard, LSL_Integer includeHuds); - LSL_Key osAgentSaveAppearance(key agentId, LSL_String notecard); - LSL_Key osAgentSaveAppearance(key agentId, LSL_String notecard, LSL_Integer includeHuds); + //ApiDesc Returns the gender of a given avatar as string. + LSL_String osGetGender(LSL_Key rawAvatarId); + //ApiDesc Returns the asset UUID of the texture representing the region map tile of the current region. + LSL_Key osGetMapTexture(); + //ApiDesc Returns the asset UUID of the texture representing the region map tile of a given region name or UUID. + LSL_Key osGetRegionMapTexture(string regionNameOrID); + //ApiDesc Returns a list of statistics regarding the region and simulator from the stats reporter module. + LSL_List osGetRegionStats(); + //ApiDesc Returns the x and y size of the region as vector. z is unused. + vector osGetRegionSize(); - key osGetGender(LSL_Key rawAvatarId); - key osGetMapTexture(); - key osGetRegionMapTexture(string regionNameOrID); - LSL_List osGetRegionStats(); - vector osGetRegionSize(); + //ApiDesc Returns the current memory usage of the simulator in bytes. + int osGetSimulatorMemory(); + //ApiDesc Returns the current memory usage of the simulator in kilobytes. + int osGetSimulatorMemoryKB(); + //ApiDesc Sends a blocking modal or notification modal with a given message to a given avatar. + void osSendAlertModal(String agentKey, String alert, int type); + //ApiDesc Disconnects an avatar from the simulator by first and last name or avatar key. + void osKickAvatar(string FirstName, string SurName, string alert); + //ApiDesc Disconnects an avatar from the simulator by first and last name or avatar key. + void osKickAvatar(LSL_Key agentId, string alert); + //ApiDesc Sets a modifier for the movement speed of a given avatar. + void osSetSpeed(string UUID, LSL_Float SpeedModifier); + //ApiDesc Sets a modifier for the movement speed of the object owner. + void osSetOwnerSpeed(LSL_Float SpeedModifier); + //ApiDesc Returns the current health of a given avatar. + LSL_Float osGetHealth(key agentId); + //ApiDesc Heals a given avatar by a given amount. + void osCauseHealing(key agentId, LSL_Float healing); + //ApiDesc Sets the health of a given avatar to a given amount. + void osSetHealth(key agentId, LSL_Float health); + //ApiDesc Sets the rate of healing for a given avatar to a given amount. + void osSetHealRate(key agentId, LSL_Float health); + //ApiDesc Returns the rate of healing for a given avatar. + LSL_Float osGetHealRate(key agentId); + //ApiDesc Subtracts health from a given avatar by a given amount. + void osCauseDamage(key avatar, LSL_Float damage); + //ApiDesc Forces a given avatar to sit bypassing permissions. + void osForceOtherSit(string avatar); + //ApiDesc Forces a given avatar to sit on a given target (object UUID) bypassing permissions. + void osForceOtherSit(string avatar, string target); + //ApiDesc Returns a list of primitive params of a given primitive (object UUID). + LSL_List osGetPrimitiveParams(LSL_Key prim, LSL_List rules); + //ApiDesc Sets primitive params of a given primitive (object UUID). + void osSetPrimitiveParams(LSL_Key prim, LSL_List rules); + //ApiDesc Sets the light projection parameters of the object containing the script. + void osSetProjectionParams(LSL_Integer projection, LSL_Key texture, LSL_Float fov, LSL_Float focus, LSL_Float amb); + //ApiDesc Sets the light projection parameters of a given primitive (object UUID). + void osSetProjectionParams(LSL_Key prim, LSL_Integer projection, LSL_Key texture, LSL_Float fov, LSL_Float focus, LSL_Float amb); + //ApiDesc Sets the light projection parameters of a given link. + void osSetProjectionParams(LSL_Integer linknumber, LSL_Integer projection, LSL_Key texture, LSL_Float fov, LSL_Float focus, LSL_Float amb); - int osGetSimulatorMemory(); - int osGetSimulatorMemoryKB(); - void osKickAvatar(string FirstName, string SurName, string alert); - void osKickAvatar(LSL_Key agentId, string alert); - void osSetSpeed(string UUID, LSL_Float SpeedModifier); - void osSetOwnerSpeed(LSL_Float SpeedModifier); - LSL_Float osGetHealth(key agentId); - void osCauseHealing(key agentId, LSL_Float healing); - void osSetHealth(key agentId, LSL_Float health); - void osSetHealRate(key agentId, LSL_Float health); - LSL_Float osGetHealRate(key agentId); - void osCauseDamage(key avatar, LSL_Float damage); - void osForceOtherSit(string avatar); - void osForceOtherSit(string avatar, string target); - LSL_List osGetPrimitiveParams(LSL_Key prim, LSL_List rules); - void osSetPrimitiveParams(LSL_Key prim, LSL_List rules); - void osSetProjectionParams(LSL_Integer projection, LSL_Key texture, LSL_Float fov, LSL_Float focus, LSL_Float amb); - void osSetProjectionParams(LSL_Key prim, LSL_Integer projection, LSL_Key texture, LSL_Float fov, LSL_Float focus, LSL_Float amb); - void osSetProjectionParams(LSL_Integer linknumber, LSL_Integer projection, LSL_Key texture, LSL_Float fov, LSL_Float focus, LSL_Float amb); + //ApiDesc Returns a strided list (key, position, name) of all the avatars in the region. + LSL_List osGetAvatarList(); + //ApiDesc Returns a strided list (key, position, name) of all NPCs in the region. + LSL_List osGetNPCList(); - LSL_List osGetAvatarList(); - LSL_List osGetNPCList(); + //ApiDesc Returns the timestamp string for a given unix epoch (seconds). + LSL_String osUnixTimeToTimestamp(LSL_Integer time); - LSL_String osUnixTimeToTimestamp(LSL_Integer time); + //ApiDesc Sends a group invite to a given avatar for the group the object belongs to. + LSL_Integer osInviteToGroup(LSL_Key agentId); + //ApiDesc Removes a given avatar from the group the object belongs to. + LSL_Integer osEjectFromGroup(LSL_Key agentId); - LSL_Integer osInviteToGroup(LSL_Key agentId); - LSL_Integer osEjectFromGroup(LSL_Key agentId); - - void osSetTerrainTexture(int level, LSL_Key texture); - void osSetTerrainTextureHeight(int corner, double low, double high); + //ApiDesc Sets the terrain texture for a given level. + void osSetTerrainTexture(int level, LSL_Key texture); + //ApiDesc Sets the texture low and high values for a given region corner. + void osSetTerrainTextureHeight(int corner, double low, double high); /// /// Checks if thing is a UUID. /// /// /// 1 if thing is a valid UUID, 0 otherwise - LSL_Integer osIsUUID(string thing); + //ApiDesc Returns an integer whether a given string is a UUID or not. + LSL_Integer osIsUUID(string thing); /// /// Wraps to Math.Min() @@ -434,7 +604,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces /// /// /// - LSL_Float osMin(double a, double b); + //ApiDesc Returns the smaller of two given numbers. + LSL_Float osMin(double a, double b); /// /// Wraps to Math.max() @@ -442,43 +613,50 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces /// /// /// - LSL_Float osMax(double a, double b); + //ApiDesc Returns the larger of two given numbers. + LSL_Float osMax(double a, double b); /// /// Get the key of the object that rezzed this object. /// /// Rezzing object key or NULL_KEY if rezzed by agent or otherwise unknown. - LSL_Key osGetRezzingObject(); + //ApiDesc Returns the key of the object that rezzed the object the script is in. + LSL_Key osGetRezzingObject(); /// /// Sets the response type for an HTTP request/response /// /// - void osSetContentType(LSL_Key id, string type); + //ApiDesc Sets the response type of a HTTP request or response + void osSetContentType(LSL_Key id, string type); /// /// Attempts to drop an attachment to the ground /// - void osDropAttachment(); + //ApiDesc Attempts to drop the attachment the script is in to the ground. + void osDropAttachment(); /// /// Attempts to drop an attachment to the ground while bypassing the script permissions /// - void osForceDropAttachment(); + //ApiDesc Attempts to drop the attachment the script is in to the ground bypassing script permissions. + void osForceDropAttachment(); /// /// Attempts to drop an attachment at the specified coordinates. /// /// /// - void osDropAttachmentAt(vector pos, rotation rot); + //ApiDesc Attempts to drop the attachment the script is in to a given position on the ground bypassing script permissions. + void osForceDropAttachmentAt(vector pos, rotation rot); /// /// Attempts to drop an attachment at the specified coordinates while bypassing the script permissions /// /// /// - void osForceDropAttachmentAt(vector pos, rotation rot); + //ApiDesc Attempts to drop the attachment the script is in to a given position on the ground bypassing script permissions. + void osForceDropAttachmentAt(vector pos, rotation rot); /// /// Identical to llListen except for a bitfield which indicates which @@ -493,8 +671,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces /// OS_LISTEN_REGEX_MESSAGE /// /// - LSL_Integer osListenRegex(int channelID, string name, string ID, - string msg, int regexBitfield); + //ApiDesc Creates a listener that parses matches for name and message through regex. + LSL_Integer osListenRegex(int channelID, string name, string ID, string msg, int regexBitfield); /// /// Wraps to bool Regex.IsMatch(string input, string pattern) @@ -502,143 +680,250 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces /// string to test for match /// string to use as pattern /// boolean - LSL_Integer osRegexIsMatch(string input, string pattern); + //ApiDesc Returns an integer whether the input string matches a regex pattern. + LSL_Integer osRegexIsMatch(string input, string pattern); - LSL_Key osRequestURL(LSL_List options); - LSL_Key osRequestSecureURL(LSL_List options); - void osCollisionSound(string impact_sound, double impact_volume); + //ApiDesc Request a new URL and directly return the assigned key. + LSL_Key osRequestURL(LSL_List options); + //ApiDesc Request a new secure URL and directly return the assigned key. + LSL_Key osRequestSecureURL(LSL_List options); + //ApiDesc Sets a given collision sound and volume to the object containing the script. + void osCollisionSound(string impact_sound, double impact_volume); + + //ApiDesc Sets or unsets volume detection for the object containing the script. + void osVolumeDetect(int detect); + + //ApiDesc Returns a list of the inertia data of the object containing the script. + LSL_List osGetInertiaData(); + //ApiDesc Unsets the inertia data of the object containing the script. + void osClearInertia(); + //ApiDesc Sets the inertia data for the object containing the script. + void osSetInertia(LSL_Float mass, vector centerOfMass, vector principalInertiaScaled, rotation rot); + //ApiDesc Sets the inertia data for the object containing the script based on a box shape bounding box calculation. + void osSetInertiaAsBox(LSL_Float mass, vector boxSize, vector centerOfMass, rotation rot); + //ApiDesc Sets the inertia data for the object containing the script based on a spherical bounding box calculation. + void osSetInertiaAsSphere(LSL_Float mass, LSL_Float radius, vector centerOfMass); + //ApiDesc Sets the inertia data for the object containing the script based on a cylindrical bounding box calculation. + void osSetInertiaAsCylinder(LSL_Float mass, LSL_Float radius, LSL_Float length, vector centerOfMass,rotation lslrot); + + //ApiDesc Teleport a given primitive (object UUID) to a given position and rotation. + LSL_Integer osTeleportObject(LSL_Key objectUUID, vector targetPos, rotation targetrotation, LSL_Integer flags); + //ApiDesc Return the link number of a given primitive in the linkset by name. + LSL_Integer osGetLinkNumber(LSL_String name); - void osVolumeDetect(int detect); + //ApiDesc Rounds a given value to a specified amount of digits. + LSL_Float osRound(LSL_Float value, LSL_Integer digits); - LSL_List osGetInertiaData(); - void osClearInertia(); - void osSetInertia(LSL_Float mass, vector centerOfMass, vector principalInertiaScaled, rotation rot); - void osSetInertiaAsBox(LSL_Float mass, vector boxSize, vector centerOfMass, rotation rot); - void osSetInertiaAsSphere(LSL_Float mass, LSL_Float radius, vector centerOfMass); - void osSetInertiaAsCylinder(LSL_Float mass, LSL_Float radius, LSL_Float length, vector centerOfMass,rotation lslrot); + //ApiDesc Returns the squared values of a vector multiplied with each other. + LSL_Float osVecMagSquare(vector a); + //ApiDesc Returns the difference of two squared vectors. + LSL_Float osVecDistSquare(vector a, vector b); + //ApiDesc Returns the angle between two vectors. + LSL_Float osAngleBetween(vector a, vector b); - LSL_Integer osTeleportObject(LSL_Key objectUUID, vector targetPos, rotation targetrotation, LSL_Integer flags); - LSL_Integer osGetLinkNumber(LSL_String name); - - LSL_Float osRound(LSL_Float value, LSL_Integer digits); - - LSL_Float osVecMagSquare(vector a); - LSL_Float osVecDistSquare(vector a, vector b); - LSL_Float osAngleBetween(vector a, vector b); - - void osAdjustSoundVolume(LSL_Integer linknum, LSL_Float volume); - void osLoopSound(LSL_Integer linknum, LSL_String sound, LSL_Float volume); - void osLoopSoundMaster(LSL_Integer linknum, LSL_String sound, LSL_Float volume); - void osLoopSoundSlave(LSL_Integer linknum, LSL_String sound, LSL_Float volume); - void osPlaySound(LSL_Integer linknum, LSL_String sound, LSL_Float volume); - void osPlaySoundSlave(LSL_Integer linknum, LSL_String sound, LSL_Float volume); - void osPreloadSound(LSL_Integer linknum, LSL_String sound); - void osSetSoundRadius(LSL_Integer linknum, LSL_Float radius); - void osStopSound(LSL_Integer linknum); - void osTriggerSound(LSL_Integer linknum, LSL_String sound, LSL_Float volume); - void osTriggerSoundLimited(LSL_Integer linknum, LSL_String sound, LSL_Float volume, - vector top_north_east, vector bottom_south_west); + //ApiDesc Sets the sound volume of a given link. + void osAdjustSoundVolume(LSL_Integer linknum, LSL_Float volume); + //ApiDesc Sets a looping sound and volume of a given link. + void osLoopSound(LSL_Integer linknum, LSL_String sound, LSL_Float volume); + //ApiDesc Sets a looping sound and volume of a given link as master. + void osLoopSoundMaster(LSL_Integer linknum, LSL_String sound, LSL_Float volume); + //ApiDesc Sets a looping sound and volume of a given link as slave. + void osLoopSoundSlave(LSL_Integer linknum, LSL_String sound, LSL_Float volume); + //ApiDesc Sets a sound and volume of a given link. + void osPlaySound(LSL_Integer linknum, LSL_String sound, LSL_Float volume); + //ApiDesc Sets a sound and volume of a given link as slave. + void osPlaySoundSlave(LSL_Integer linknum, LSL_String sound, LSL_Float volume); + //ApiDesc Sets a sound to preload for a given link. + void osPreloadSound(LSL_Integer linknum, LSL_String sound); + //ApiDesc Sets the sound radius for a given link. + void osSetSoundRadius(LSL_Integer linknum, LSL_Float radius); + //ApiDesc Stops the sound for a given link. + void osStopSound(LSL_Integer linknum); + //ApiDesc Trigger a given preloaded sound with volume for a given link. + void osTriggerSound(LSL_Integer linknum, LSL_String sound, LSL_Float volume); + //ApiDesc Trigger a given preloaded sound with volume and axis-aligned bounding box for a given link. + void osTriggerSoundLimited(LSL_Integer linknum, LSL_String sound, LSL_Float volume, vector top_north_east, vector bottom_south_west) + //ApiDesc Detected params return of triggered user event of their set country. LSL_String osDetectedCountry(LSL_Integer number); + //ApiDesc Returns the country of a user. LSL_String osGetAgentCountry(LSL_Key agentId); + //ApiDesc Returns the remainder of a string from start index. LSL_String osStringSubString(LSL_String src, LSL_Integer start); + //ApiDesc Returns a substring from start index and length. LSL_String osStringSubString(LSL_String src, LSL_Integer start, LSL_Integer length); + //ApiDesc Returns an integer whether a string starts with another string. LSL_Integer osStringStartsWith(LSL_String src, LSL_String value, LSL_Integer ignorecase); + //ApiDesc Returns an integer whether a string ends with another string. LSL_Integer osStringEndsWith(LSL_String src, LSL_String value, LSL_Integer ignorecase); + //ApiDesc Returns the index of a substring of a given string. LSL_Integer osStringIndexOf(LSL_String src, LSL_String value, LSL_Integer ignorecase); + //ApiDesc Returns the index of a substring of given string starting from an index and match count. LSL_Integer osStringIndexOf(LSL_String src, LSL_String value, LSL_Integer start, LSL_Integer count, LSL_Integer ignorecase); + //ApiDesc Returns the index of the last substring of a given string. LSL_Integer osStringLastIndexOf(LSL_String src, LSL_String value, LSL_Integer ignorecase); + //ApiDesc Returns the index of the last substring of a given string starting from an index and match count. LSL_Integer osStringLastIndexOf(LSL_String src, LSL_String value, LSL_Integer start, LSL_Integer count, LSL_Integer ignorecase); + //ApiDesc Returns the remainder of a given string with characters from start index and count removed. LSL_String osStringRemove(LSL_String src, LSL_Integer start, LSL_Integer count); + //ApiDesc Returns a string with a substring replaced with another string. LSL_String osStringReplace(LSL_String src, LSL_String oldvalue, LSL_String newvalue); + //ApiDesc Returns an integer whether two float values are within floating point precision equal. LSL_Integer osApproxEquals(LSL_Float a, LSL_Float b); + //ApiDesc Returns an integer whether two float values are within a given margin equal. LSL_Integer osApproxEquals(LSL_Float a, LSL_Float b, LSL_Float margin); + //ApiDesc Returns an integer whether two vectors are within floating point precision equal. LSL_Integer osApproxEquals(vector va, vector vb); + //ApiDesc Returns an integer whether two vectors are within a given margin equal. LSL_Integer osApproxEquals(vector va, vector vb, LSL_Float margin); + //ApiDesc Returns an integer whether two rotations are within floating point precision equal. LSL_Integer osApproxEquals(rotation ra, rotation rb); + //ApiDesc Returns an integer whether two rotations are within a given margin equal. LSL_Integer osApproxEquals(rotation ra, rotation rb, LSL_Float margin); - LSL_Key osGetInventoryLastOwner(LSL_String itemNameOrId); - LSL_Key osGetInventoryItemKey(LSL_String name); - LSL_Key osGetLinkInventoryKey(LSL_Integer linkNumber, LSL_String name, LSL_Integer type); - LSL_List osGetLinkInventoryKeys(LSL_Integer linkNumber, LSL_Integer type); - LSL_Key osGetLinkInventoryItemKey(LSL_Integer linkNumber, LSL_String name); - LSL_String osGetInventoryName(LSL_Key itemId); - LSL_String osGetLinkInventoryName(LSL_Integer linkNumber, LSL_Key itemId); - LSL_String osGetInventoryDesc(LSL_String itemNameOrId); - LSL_String osGetLinkInventoryDesc(LSL_Integer linkNumber, LSL_String itemNameorid); - LSL_List osGetInventoryItemKeys(LSL_Integer type); - LSL_List osGetLinkInventoryItemKeys(LSL_Integer linkNumber, LSL_Integer type); - LSL_List osGetInventoryNames(LSL_Integer type); - LSL_List osGetLinkInventoryNames(LSL_Integer linkNumber, LSL_Integer type); - void osRemoveLinkInventory(LSL_Integer linkNumber, LSL_String name); - void osGiveLinkInventory(LSL_Integer linkNumber, LSL_Key destination, LSL_String inventory); - void osGiveLinkInventoryList(LSL_Integer linkNumber, LSL_Key destination, LSL_String category, LSL_List inventory); - LSL_Key osGetLastChangedEventKey(); - LSL_Float osGetPSTWallclock(); - LSL_Rotation osSlerp(LSL_Rotation a, LSL_Rotation b, LSL_Float amount); - vector osSlerp(vector a, vector b, LSL_Float amount); + //ApiDesc Returns the last owner (key) of a given inventory item (name or key) of the object containing the script. + LSL_Key osGetInventoryLastOwner(LSL_String itemNameOrId); + //ApiDesc Returns the key of a given inventory item of the object containing the script. Not the asset UUID. + LSL_Key osGetInventoryItemKey(LSL_String name); + //ApiDesc Returns the asset UUID of a given inventory item filtered by type in a given link. + LSL_Key osGetLinkInventoryKey(LSL_Integer linkNumber, LSL_String name, LSL_Integer type); + //ApiDesc Returns a list of asset UUIDs of inventory items filtered by type in a given link. + LSL_List osGetLinkInventoryKeys(LSL_Integer linkNumber, LSL_Integer type); + //ApiDesc Returns the asset UUID of a given inventory item of a given link. + LSL_Key osGetLinkInventoryItemKey(LSL_Integer linkNumber, LSL_String name); + //ApiDesc Returns the name of a given inventory item key in the object containing the script. + LSL_String osGetInventoryName(LSL_Key itemId); + //ApiDesc Returns the name of a given inventory item key in a given link. + LSL_String osGetLinkInventoryName(LSL_Integer linkNumber, LSL_Key itemId); + //ApiDesc Returns the description of a given inventory item key or name in the object containing the script. + LSL_String osGetInventoryDesc(LSL_String itemNameOrId); + //ApiDesc Returns the description of a given inventory item key or name in a given link. + LSL_String osGetLinkInventoryDesc(LSL_Integer linkNumber, LSL_String itemNameorid); + //ApiDesc Returns a list of inventory item keys filtered by type in the object containing the script. + LSL_List osGetInventoryItemKeys(LSL_Integer type); + //ApiDesc Returns a list of inventory item keys filtered by type in a given link. + LSL_List osGetLinkInventoryItemKeys(LSL_Integer linkNumber, LSL_Integer type); + //ApiDesc Returns a list of inventory names filtered by type in the object containing the script. + LSL_List osGetInventoryNames(LSL_Integer type); + //ApiDesc Returns a list of inventory names filtered by type in a given link. + LSL_List osGetLinkInventoryNames(LSL_Integer linkNumber, LSL_Integer type); + //ApiDesc Removes a inventory item by name in a given link. + void osRemoveLinkInventory(LSL_Integer linkNumber, LSL_String name); - void osResetAllScripts(LSL_Integer AllLinkset); - LSL_Integer osIsNotValidNumber(LSL_Float v); + //ApiDesc Send a given inventory item (name) from a given link to a destination object or avatar (key). + void osGiveLinkInventory(LSL_Integer linkNumber, LSL_Key destination, LSL_String inventory); + //ApiDesc Send a list of inventory items (key) in a given link to a given destination avatar (key) creating a new named folder. + void osGiveLinkInventoryList(LSL_Integer linkNumber, LSL_Key destination, LSL_String folderName, LSL_List inventory); + //ApiDesc Returns the key of the last event setting detected params. + LSL_Key osGetLastChangedEventKey(); + //ApiDesc Returns the seconds since midnight of the PST time zone. + LSL_Float osGetPSTWallclock(); + //ApiDesc Returns a spherical interpolation of two rotations shifted by amount. + LSL_Rotation osSlerp(LSL_Rotation a, LSL_Rotation b, LSL_Float amount); + //ApiDesc Returns a spherical interpolation of two vectors shifted by amount. + vector osSlerp(vector a, vector b, LSL_Float amount); - void osSetSitActiveRange(LSL_Float v); - void osSetLinkSitActiveRange(LSL_Integer linkNumber, LSL_Float v); - LSL_Float osGetSitActiveRange(); - LSL_Float osGetLinkSitActiveRange(LSL_Integer linkNumber); - vector osGetSitTargetPos(); - rotation osGetSitTargetRot(); - void osSetStandTarget(vector v); - void osSetLinkStandTarget(LSL_Integer linkNumber, vector v); - vector osGetStandTarget(); - vector osGetLinkStandTarget(LSL_Integer linkNumber); - LSL_Integer osClearObjectAnimations(); + //ApiDesc Resets all scripts in the inventory of a link, the entire linkset or itself. + void osResetAllScripts(LSL_Integer AllLinkset); + //ApiDesc Returns an integer whether a given number is out of bounds or NaN. + LSL_Integer osIsNotValidNumber(LSL_Float v); + + //ApiDesc Sets the max distance for allowing avatars to sit on the object containing the script. + void osSetSitActiveRange(LSL_Float v); + //ApiDesc Sets the max distance for allowing avatars to sit on a given link.. + void osSetLinkSitActiveRange(LSL_Integer linkNumber, LSL_Float v); + //ApiDesc Returns the max distance for allowing avatars to sit on the object containing the script. + LSL_Float osGetSitActiveRange(); + //ApiDesc Returns the max distance for allowing avatars to sit on a given link. + LSL_Float osGetLinkSitActiveRange(LSL_Integer linkNumber); + //ApiDesc Returns the position of the sit target of the object containing the script. + vector osGetSitTargetPos(); + //ApiDesc Returns the rotation of the sit target of the object containing the script. + rotation osGetSitTargetRot(); + //ApiDesc Sets the stand offset from the position of the object containing the script. + void osSetStandTarget(vector v); + //ApiDesc Sets the stand offset from the position of a given link. + void osSetLinkStandTarget(LSL_Integer linkNumber, vector v); + //ApiDesc Returns the stand offset of the object containing the script. + vector osGetStandTarget(); + //ApiDesc Returns the stand offset of a given link. + vector osGetLinkStandTarget(LSL_Integer linkNumber); + //ApiDesc Removes the object animations and returns the count of removed animations. + LSL_Integer osClearObjectAnimations(); - LSL_Float osGetApparentTime(); + //ApiDesc Returns the virtual seconds since environment midnight. + LSL_Float osGetApparentTime(); + //ApiDesc Returns the virtual second since environment midnight as timestamp. LSL_String osGetApparentTimeString(LSL_Integer format24); - LSL_Float osGetApparentRegionTime(); + //ApiDesc Returns the virtual seconds since environment midnight. + LSL_Float osGetApparentRegionTime(); + //ApiDesc Returns the virtual second since environment midnight as timestamp. LSL_String osGetApparentRegionTimeString(LSL_Integer format24); - LSL_Integer osReplaceAgentEnvironment(LSL_Key agentkey, LSL_Integer transition, LSL_String daycycle); - LSL_Integer osReplaceParcelEnvironment(LSL_Integer transition, LSL_String daycycle); - LSL_Integer osReplaceRegionEnvironment(LSL_Integer transition, LSL_String daycycle, - LSL_Float daylen, LSL_Float dayoffset, LSL_Float altitude1, LSL_Float altitude2, LSL_Float altitude3); - LSL_Integer osResetEnvironment(LSL_Integer parcelOrRegion, LSL_Integer transition); + //ApiDesc Sets the environment of a given avatar (key) to a given settings item (asset UUID) with transition time. + LSL_Integer osReplaceAgentEnvironment(LSL_Key agentkey, LSL_Integer transition, LSL_String daycycle); + //ApiDesc Sets the environment of the current parcel to a given settings item (asset UUID) with transition time. + LSL_Integer osReplaceParcelEnvironment(LSL_Integer transition, LSL_String daycycle); + //ApiDesc Alters the region environment base parameters of a given settings item (asset UUID) with transition time. + LSL_Integer osReplaceRegionEnvironment(LSL_Integer transition, LSL_String daycycle, LSL_Float daylen, LSL_Float dayoffset, LSL_Float altitude1, LSL_Float altitude2, LSL_Float altitude3); + //ApiDesc Resets either the parcel or region environment to their default values. + LSL_Integer osResetEnvironment(LSL_Integer parcelOrRegion, LSL_Integer transition); - void osParticleSystem(LSL_List rules); - void osLinkParticleSystem(LSL_Integer linknumber, LSL_List rules); + //ApiDesc Sets the particle system rules of the object containing the script. + void osParticleSystem(LSL_List rules); + //ApiDesc Sets the particle system rules of a given link. + void osLinkParticleSystem(LSL_Integer linknumber, LSL_List rules); - LSL_Integer osNpcLookAt(LSL_Key npckey, LSL_Integer type, LSL_Key objkey, vector offset); + //ApiDesc Sets the look at direction of a NPC to a given object (key) and offset. + LSL_Integer osNpcLookAt(LSL_Key npckey, LSL_Integer type, LSL_Key objkey, vector offset); - LSL_Integer osAvatarType(LSL_Key avkey); - LSL_Integer osAvatarType(LSL_String sFirstName, LSL_String sLastName); - void osListSortInPlace(LSL_List src, LSL_Integer stride, LSL_Integer ascending); - void osListSortInPlaceStrided(LSL_List src, LSL_Integer stride, LSL_Integer stride_index, LSL_Integer ascending); - LSL_List osGetParcelDetails(LSL_Key id, LSL_List param); - LSL_List osGetParcelIDs(); - LSL_Key osGetParcelID(); - LSL_List osOldList2ListStrided(LSL_List src, int start, int end, int stride); - LSL_Integer osGetPrimCount(); - LSL_Integer osGetPrimCount(LSL_Key object_id); - LSL_Integer osGetSittingAvatarsCount(); - LSL_Integer osGetSittingAvatarsCount(LSL_Key object_id); + //ApiDesc Returns the type of a given avatar (key). + LSL_Integer osAvatarType(LSL_Key avkey); + //ApiDesc Returns the type of a given avatar (name). + LSL_Integer osAvatarType(LSL_String sFirstName, LSL_String sLastName); + //ApiDesc Sorts a given list in place. + void osListSortInPlace(LSL_List src, LSL_Integer stride, LSL_Integer ascending); + //ApiDesc Sorts a given strided list in place. + void osListSortInPlaceStrided(LSL_List src, LSL_Integer stride, LSL_Integer stride_index, LSL_Integer ascending); + LSL_List osGetParcelDetails(LSL_Key id, LSL_List param); + //ApiDesc Returns a list of parcel ids of the current region. + LSL_List osGetParcelIDs(); + //ApiDesc Returns the parcel id of the current parcel. + LSL_Key osGetParcelID(); + //ApiDesc Returns a strided list of a given list. + LSL_List osOldList2ListStrided(LSL_List src, int start, int end, int stride); + //ApiDesc Returns the number of links in the object containing the script. + LSL_Integer osGetPrimCount(); + //ApiDesc Returns the number of links in a given object (key). + LSL_Integer osGetPrimCount(LSL_Key object_id); + //ApiDesc Returns the number of avatars seated on the object containing the script. + LSL_Integer osGetSittingAvatarsCount(); + //ApiDesc Returns the number of avatars seated on a given object (key). + LSL_Integer osGetSittingAvatarsCount(LSL_Key object_id); + //ApiDesc Encrypt a plain text using AES-256-CBC Symmetric Algorithm Key (secret) and a random Initialization Vector (IV). Returns the Hex string of the IV bytes and the Hex string of the encrypted text bytes separated with (:). LSL_String osAESEncrypt(string secret, string plainText); + //ApiDesc Encrypt a plain text using AES-256-CBC Symmetric Algorithm Key (secret) and a custom Initialization Vector (ivString). Returns the Hex string of the IV bytes and the Hex string of the encrypted text bytes separated with (:). LSL_String osAESEncryptTo(string secret, string plainText, string ivString); + //ApiDesc Decrypt an encrypted text using osAESEncrypt() and the same Key (secret) used in the encryption. Returns the decrypted text. LSL_String osAESDecrypt(string secret, string encryptedText); + //ApiDesc Decrypt an encrypted text using osAESEncryptTo() and the same Key (secret) and Initialization Vector (ivString) used in the encryption. Returns the decrypted text. LSL_String osAESDecryptFrom(string secret, string encryptedText, string ivString); + //ApiDesc Returns the color vector of a given link and face. vector osGetLinkColor(LSL_Integer linknum, LSL_Integer face); + //ApiDesc Returns the color vector of a given color temperature. vector osTemperature2sRGB(LSL_Float dtemp); - /// - /// osListFindListNext identical to llListFindListNext but with search limited to sublist from start to end (excluded) - /// - /// string to test for match - /// string to use as pattern - /// index of where to start search - /// index of where to stop search. - /// number of match to return - /// a integer with index of match point or -1 - LSL_Integer osListFindListNext(LSL_List src, LSL_List test, LSL_Integer start, LSL_Integer end, LSL_Integer instance); + /// + /// osListFindListNext identical to llListFindListNext but with search limited to sublist from start to end (excluded) + /// + /// string to test for match + /// string to use as pattern + /// index of where to start search + /// index of where to stop search. + /// number of match to return + /// a integer with index of match point or -1 + //ApiDesc Returns the nth index of the sublist constrained with start and end count. + LSL_Integer osListFindListNext(LSL_List src, LSL_List test, LSL_Integer start, LSL_Integer end, LSL_Integer instance); } } diff --git a/bin/ScriptSyntax.xml b/bin/ScriptSyntax.xml index 87db76a3f2..2683ff40b6 100644 --- a/bin/ScriptSyntax.xml +++ b/bin/ScriptSyntax.xml @@ -1,4 +1,4 @@ -78a7efc0-6d62-85ab-bdc0-b8a94e521ae0 +98972fa2-4c3f-8c44-f022-ed65eb6f1a6d llsd-lsl-syntax-version2 controls @@ -3867,7 +3867,7 @@ arguments valtypeinteger - tooltipReturns absolute version as val (ie as postive value) + tooltipReturns absolute version as val (ie as positive value) llAcos @@ -5349,6 +5349,7 @@ linknumbertypeinteger soundtypestring volumetypefloat + flagstypeinteger llLinkPlaySound @@ -5357,7 +5358,6 @@ linknumbertypeinteger soundtypestring volumetypefloat - flagstypeinteger llLinksetDataAvailable @@ -7146,6 +7146,7 @@ linknumtypeinteger volumetypefloat + tooltipSets the sound volume of a given link. osAESDecrypt @@ -7154,6 +7155,7 @@ secrettypestring encryptedTexttypestring + tooltipDecrypt an encrypted text using osAESEncrypt() and the same Key (secret) used in the encryption. Returns the decrypted text. osAESDecryptFrom @@ -7163,6 +7165,7 @@ encryptedTexttypestring ivStringtypestring + tooltipDecrypt an encrypted text using osAESEncryptTo() and the same Key (secret) and Initialization Vector (ivString) used in the encryption. Returns the decrypted text. osAESEncrypt @@ -7171,6 +7174,7 @@ secrettypestring plainTexttypestring + tooltipEncrypt a plain text using AES-256-CBC Symmetric Algorithm Key (secret) and a random Initialization Vector (IV). Returns the Hex string of the IV bytes and the Hex string of the encrypted text bytes separated with (:). osAESEncryptTo @@ -7180,6 +7184,7 @@ plainTexttypestring ivStringtypestring + tooltipEncrypt a plain text using AES-256-CBC Symmetric Algorithm Key (secret) and a custom Initialization Vector (ivString). Returns the Hex string of the IV bytes and the Hex string of the encrypted text bytes separated with (:). osAgentSaveAppearance @@ -7189,6 +7194,7 @@ notecardtypestring includeHudstypeinteger + tooltipSave appearance of an avatar (with the choice to include Huds or no) to a notecard in the primitive inventory. osAgentSaveAppearance @@ -7197,6 +7203,7 @@ agentIdtypekey notecardtypestring + tooltipSave appearance of an avatar to a notecard in the primitive inventory. osAngleBetween @@ -7205,6 +7212,7 @@ atypevector btypevector + tooltipReturns the angle between two vectors. osApproxEquals @@ -7214,6 +7222,35 @@ rbtyperotation margintypefloat + tooltipReturns an integer whether two rotations are within a given margin equal. + + osApproxEquals + + returninteger + arguments + atypefloat + btypefloat + + tooltipReturns an integer whether two float values are within floating point precision equal. + + osApproxEquals + + returninteger + arguments + vatypevector + vbtypevector + margintypefloat + + tooltipReturns an integer whether two vectors are within a given margin equal. + + osApproxEquals + + returninteger + arguments + vatypevector + vbtypevector + + tooltipReturns an integer whether two vectors are within floating point precision equal. osApproxEquals @@ -7222,31 +7259,7 @@ ratyperotation rbtyperotation - - osApproxEquals - - returninteger - arguments - vatypevector - vbtypevector - - - osApproxEquals - - returninteger - arguments - vatypevector - vbtypevector - margintypefloat - - - osApproxEquals - - returninteger - arguments - atypefloat - btypefloat - + tooltipReturns an integer whether two rotations are within floating point precision equal. osApproxEquals @@ -7256,6 +7269,7 @@ btypefloat margintypefloat + tooltipReturns an integer whether two float values are within a given margin equal. osAvatarName2Key @@ -7264,6 +7278,7 @@ firstnametypestring lastnametypestring + tooltipReturns the avatar key, based on their first and last name. osAvatarPlayAnimation @@ -7271,6 +7286,7 @@ avatarIdtypekey animationtypestring + tooltipForcefully plays a given animation for a given avatar bypassing animation permissions. osAvatarStopAnimation @@ -7278,6 +7294,15 @@ avatarIdtypekey animationtypestring + tooltipForcefully stops a given animation for a given avatar bypassing animation permissions. + + osAvatarType + + returninteger + arguments + avkeytypekey + + tooltipReturns the type of a given avatar (key). osAvatarType @@ -7286,13 +7311,7 @@ sFirstNametypestring sLastNametypestring - - osAvatarType - - returninteger - arguments - avkeytypekey - + tooltipReturns the type of a given avatar (name). osCauseDamage @@ -7300,6 +7319,7 @@ avatartypekey damagetypefloat + tooltipSubtracts health from a given avatar by a given amount. osCauseHealing @@ -7307,6 +7327,7 @@ agentIdtypekey healingtypefloat + tooltipHeals a given avatar by a given amount. osCheckODE @@ -7316,11 +7337,13 @@ osClearInertia arguments + tooltipUnsets the inertia data of the object containing the script. osClearObjectAnimations returninteger arguments + tooltipRemoves the object animations and returns the count of removed animations. osCollisionSound @@ -7328,6 +7351,7 @@ impact_soundtypestring impact_volumetypefloat + tooltipSets a given collision sound and volume to the object containing the script. osConsoleCommand @@ -7335,6 +7359,7 @@ arguments Commandtypestring + tooltipExecute a console command. osDetectedCountry @@ -7342,12 +7367,14 @@ arguments numbertypeinteger + tooltipDetected params return of triggered user event of their set country. osDie arguments objectUUIDtypekey + tooltipSimilar to llDie, but works on a given object UUID. osDrawEllipse @@ -7357,6 +7384,7 @@ widthtypeinteger heighttypeinteger + tooltipAppends an ellipse drawing command to the string provided in drawList and returns the result.\nThe ellipse is drawn with the current pen size and color on the x,y point pairs that comes from LSL list. osDrawFilledEllipse @@ -7366,6 +7394,7 @@ widthtypeinteger heighttypeinteger + tooltipAppends a filled ellipse drawing command to the string provided in drawList and returns the result.\nThe ellipse is drawn with the current pen size and color on the x,y point pairs that comes from LSL list. osDrawFilledPolygon @@ -7375,6 +7404,7 @@ xtypelist ytypelist + tooltipAppends a filled polygon drawing command to the string provided in drawList and returns the result.\nThe polygon is drawn with the current pen size and color on the x,y point pairs that comes from LSL list. osDrawFilledRectangle @@ -7384,6 +7414,7 @@ widthtypeinteger heighttypeinteger + tooltipAppends a filled rectangle drawing command to the string provided in drawList and returns the result.\nThe rectangle is drawn with the current pen size and color on the x,y point pairs that comes from LSL list. osDrawImage @@ -7392,8 +7423,9 @@ drawListtypestring widthtypeinteger heighttypeinteger - imageUrltypestring + imagetypestring + tooltipDraw a given image from URL or asset uuid with given width and height at the current draw position. osDrawLine @@ -7405,6 +7437,7 @@ endXtypeinteger endYtypeinteger + tooltipDraws a line from a starting coordinate (pixels x y) to a target position. osDrawLine @@ -7414,6 +7447,7 @@ endXtypeinteger endYtypeinteger + tooltipDraws a line from the current drawing position to a target position (pixels x y). osDrawPolygon @@ -7423,6 +7457,7 @@ xtypelist ytypelist + tooltipAppends a polygon drawing command to the string provided in drawList and returns the result.\nThe polygon is drawn with the current pen size and color on the x,y point pairs that comes from LSL list. osDrawRectangle @@ -7432,6 +7467,7 @@ widthtypeinteger heighttypeinteger + tooltipAppends a rectangle drawing command to the string provided in drawList and returns the result.\nThe rectangle is drawn with the current pen size and color on the x,y point pairs that comes from LSL list. osDrawResetTransform @@ -7439,6 +7475,7 @@ arguments drawListtypestring + tooltipReset all transforms. osDrawRotationTransform @@ -7447,6 +7484,7 @@ drawListtypestring xtypefloat + tooltipAppends a rotation transform drawing command to the string provided in drawList and returns the result. osDrawScaleTransform @@ -7456,6 +7494,7 @@ xtypefloat ytypefloat + tooltipAppends a scale transform drawing command to the string provided in drawList and returns the result. osDrawText @@ -7464,6 +7503,7 @@ drawListtypestring texttypestring + tooltipDraws a given string as text at the current drawing position. Text extends right and downwards. osDrawTranslationTransform @@ -7473,17 +7513,12 @@ xtypefloat ytypefloat + tooltipAppends a translation transform drawing command to the string provided in drawList and returns the result. osDropAttachment arguments - - osDropAttachmentAt - - arguments - postypevector - rottyperotation - + tooltipAttempts to drop the attachment the script is in to the ground. osEjectFromGroup @@ -7491,12 +7526,14 @@ arguments agentIdtypekey + tooltipRemoves a given avatar from the group the object belongs to. osForceAttachToAvatar arguments attachmenttypeinteger + tooltipForcefully attaches the object containing this script to the object owner bypassing attach permissions. osForceAttachToAvatarFromInventory @@ -7504,6 +7541,7 @@ itemNametypestring attachmenttypeinteger + tooltipForcefully attaches an object from the inventory of the object containing this script to the object owner bypassing attach permissions. osForceAttachToOtherAvatarFromInventory @@ -7512,16 +7550,19 @@ itemNametypestring attachmentPointtypeinteger + tooltipForcefully attaches an object from the inventory of the object containing this script to a given attachment point of a given avatar bypassing attach permissions. osForceBreakAllLinks arguments + tooltipBreak all links of a linkset bypassing object owner permissions. osForceBreakLink arguments linknumtypeinteger + tooltipBreak a link of a linkset bypassing object owner permissions. osForceCreateLink @@ -7529,14 +7570,17 @@ targettypestring parenttypeinteger + tooltipAdd a link to a linkset bypassing object owner permissions. osForceDetachFromAvatar arguments + tooltipForcefully detach the object containing this script from the avatar it is attached to bypassing attach permissions. osForceDropAttachment arguments + tooltipAttempts to drop the attachment the script is in to the ground bypassing script permissions. osForceDropAttachmentAt @@ -7544,6 +7588,22 @@ postypevector rottyperotation + tooltipAttempts to drop the attachment the script is in to a given position on the ground bypassing script permissions. + + osForceDropAttachmentAt + + arguments + postypevector + rottyperotation + + tooltipAttempts to drop the attachment the script is in to a given position on the ground bypassing script permissions. + + osForceOtherSit + + arguments + avatartypestring + + tooltipForces a given avatar to sit bypassing permissions. osForceOtherSit @@ -7551,12 +7611,7 @@ avatartypestring targettypestring - - osForceOtherSit - - arguments - avatartypestring - + tooltipForces a given avatar to sit on a given target (object UUID) bypassing permissions. osFormatString @@ -7565,6 +7620,7 @@ strtypestring stringstypelist + tooltipFills a given strings placeholders {%d} with the entries of the given list. osGetAgentCountry @@ -7572,6 +7628,7 @@ arguments agentIdtypekey + tooltipReturns the country of a user. osGetAgentIP @@ -7579,16 +7636,19 @@ arguments agenttypestring + tooltipReturns the IP address of a given avatar. osGetAgents returnlist arguments + tooltipReturns a list of avatars in the current region. osGetApparentRegionTime returnfloat arguments + tooltipReturns the virtual seconds since environment midnight. osGetApparentRegionTimeString @@ -7596,11 +7656,13 @@ arguments format24typeinteger + tooltipReturns the virtual second since environment midnight as timestamp. osGetApparentTime returnfloat arguments + tooltipReturns the virtual seconds since environment midnight. osGetApparentTimeString @@ -7608,6 +7670,7 @@ arguments format24typeinteger + tooltipReturns the virtual second since environment midnight as timestamp. osGetAvatarHomeURI @@ -7615,16 +7678,19 @@ arguments uuidtypestring + tooltipTries to determine the home grid URI of an avatar. osGetAvatarList returnlist arguments + tooltipReturns a strided list (key, position, name) of all the avatars in the region. osGetCurrentSunHour returnfloat arguments + tooltipReturns the current region sun hour as float (24 hour clock). osGetDrawStringSize @@ -7635,13 +7701,15 @@ fontNametypestring fontSizetypeinteger + tooltipReturns a vector containing the horizontal and vertical dimensions in pixels of the specified text, if drawn in the specified font and at the specified point size. The horizontal extent is returned in the .x component of the vector, and the vertical extent is returned in .y. The .z component is not used. osGetGender - returnkey + returnstring arguments rawAvatarIdtypekey + tooltipReturns the gender of a given avatar as string. osGetGridCustom @@ -7649,31 +7717,37 @@ arguments keytypestring + tooltipReturns custom grid information based on input key. osGetGridGatekeeperURI returnstring arguments + tooltipReturns the gatekeeper URI of the current grid. osGetGridHomeURI returnstring arguments + tooltipReturns the home URI of the current grid. osGetGridLoginURI returnstring arguments + tooltipReturns the login URI of the current grid. osGetGridName returnstring arguments + tooltipReturns the grid name of the current grid. osGetGridNick returnstring arguments + tooltipReturns the grid nick of the current grid. osGetHealRate @@ -7681,6 +7755,7 @@ arguments agentIdtypekey + tooltipReturns the rate of healing for a given avatar. osGetHealth @@ -7688,11 +7763,13 @@ arguments agentIdtypekey + tooltipReturns the current health of a given avatar. osGetInertiaData returnlist arguments + tooltipReturns a list of the inertia data of the object containing the script. osGetInventoryDesc @@ -7700,6 +7777,7 @@ arguments itemNameOrIdtypestring + tooltipReturns the description of a given inventory item key or name in the object containing the script. osGetInventoryItemKey @@ -7707,6 +7785,7 @@ arguments nametypestring + tooltipReturns the key of a given inventory item of the object containing the script. Not the asset UUID. osGetInventoryItemKeys @@ -7714,6 +7793,7 @@ arguments typetypeinteger + tooltipReturns a list of inventory item keys filtered by type in the object containing the script. osGetInventoryLastOwner @@ -7721,6 +7801,7 @@ arguments itemNameOrIdtypestring + tooltipReturns the last owner (key) of a given inventory item (name or key) of the object containing the script. osGetInventoryName @@ -7728,6 +7809,7 @@ arguments itemIdtypekey + tooltipReturns the name of a given inventory item key in the object containing the script. osGetInventoryNames @@ -7735,11 +7817,13 @@ arguments typetypeinteger + tooltipReturns a list of inventory names filtered by type in the object containing the script. osGetLastChangedEventKey returnkey arguments + tooltipReturns the key of the last event setting detected params. osGetLinkColor @@ -7748,6 +7832,7 @@ linknumtypeinteger facetypeinteger + tooltipReturns the color vector of a given link and face. osGetLinkInventoryDesc @@ -7756,6 +7841,7 @@ linkNumbertypeinteger itemNameoridtypestring + tooltipReturns the description of a given inventory item key or name in a given link. osGetLinkInventoryItemKey @@ -7764,6 +7850,7 @@ linkNumbertypeinteger nametypestring + tooltipReturns the asset UUID of a given inventory item of a given link. osGetLinkInventoryItemKeys @@ -7772,6 +7859,7 @@ linkNumbertypeinteger typetypeinteger + tooltipReturns a list of inventory item keys filtered by type in a given link. osGetLinkInventoryKey @@ -7781,6 +7869,7 @@ nametypestring typetypeinteger + tooltipReturns the asset UUID of a given inventory item filtered by type in a given link. osGetLinkInventoryKeys @@ -7789,6 +7878,7 @@ linkNumbertypeinteger typetypeinteger + tooltipReturns a list of asset UUIDs of inventory items filtered by type in a given link. osGetLinkInventoryName @@ -7797,6 +7887,7 @@ linkNumbertypeinteger itemIdtypekey + tooltipReturns the name of a given inventory item key in a given link. osGetLinkInventoryNames @@ -7805,6 +7896,7 @@ linkNumbertypeinteger typetypeinteger + tooltipReturns a list of inventory names filtered by type in a given link. osGetLinkNumber @@ -7812,6 +7904,7 @@ arguments nametypestring + tooltipReturn the link number of a given primitive in the linkset by name. osGetLinkPrimitiveParams @@ -7820,6 +7913,7 @@ linknumbertypeinteger rulestypelist + tooltipReturns a list of the primitive parameters given its link number. osGetLinkSitActiveRange @@ -7827,6 +7921,7 @@ arguments linkNumbertypeinteger + tooltipReturns the max distance for allowing avatars to sit on a given link. osGetLinkStandTarget @@ -7834,11 +7929,13 @@ arguments linkNumbertypeinteger + tooltipReturns the stand offset of a given link. osGetMapTexture returnkey arguments + tooltipReturns the asset UUID of the texture representing the region map tile of the current region. osGetNotecard @@ -7846,6 +7943,7 @@ arguments nametypestring + tooltipDirectly returns the entire contents of a given notecard as a string. osGetNotecardLine @@ -7854,11 +7952,13 @@ nametypestring linetypeinteger + tooltipDirectly returns a given line of a notecard in the primitive inventory. osGetNPCList returnlist arguments + tooltipReturns a strided list (key, position, name) of all NPCs in the region. osGetNumberOfAttachments @@ -7867,6 +7967,7 @@ avatartypekey attachmentPointstypelist + tooltipReturns the number of attachments attached to a list of attachment points of a given avatar. osGetNumberOfNotecardLines @@ -7874,6 +7975,7 @@ arguments nametypestring + tooltipReturns the number of lines of a given notecard. osGetParcelDetails @@ -7889,26 +7991,31 @@ arguments postypevector + tooltipReturns the number of visitors to the region since start. osGetParcelID returnkey arguments + tooltipReturns the parcel id of the current parcel. osGetParcelIDs returnlist arguments + tooltipReturns a list of parcel ids of the current region. osGetPhysicsEngineName returnstring arguments + tooltipReturns the name of the currently enabled physics engine. osGetPhysicsEngineType returnstring arguments + tooltipReturns the type of the currently enabled physics engine. osGetPrimCount @@ -7916,11 +8023,13 @@ arguments object_idtypekey + tooltipReturns the number of links in a given object (key). osGetPrimCount returninteger arguments + tooltipReturns the number of links in the object containing the script. osGetPrimitiveParams @@ -7929,11 +8038,13 @@ primtypekey rulestypelist + tooltipReturns a list of primitive params of a given primitive (object UUID). osGetPSTWallclock returnfloat arguments + tooltipReturns the seconds since midnight of the PST time zone. osGetRegionMapTexture @@ -7941,56 +8052,67 @@ arguments regionNameOrIDtypestring + tooltipReturns the asset UUID of the texture representing the region map tile of a given region name or UUID. osGetRegionSize returnvector arguments + tooltipReturns the x and y size of the region as vector. z is unused. osGetRegionStats returnlist arguments + tooltipReturns a list of statistics regarding the region and simulator from the stats reporter module. osGetRezzingObject returnkey arguments + tooltipReturns the key of the object that rezzed the object the script is in. osGetScriptEngineName returnstring arguments + tooltipReturns the name of the active script engine. osGetSimulatorMemory returninteger arguments + tooltipReturns the current memory usage of the simulator in bytes. osGetSimulatorMemoryKB returninteger arguments + tooltipReturns the current memory usage of the simulator in kilobytes. osGetSimulatorVersion returnstring arguments + tooltipReturns the version information of the current simulator. osGetSitActiveRange returnfloat arguments + tooltipReturns the max distance for allowing avatars to sit on the object containing the script. osGetSitTargetPos returnvector arguments + tooltipReturns the position of the sit target of the object containing the script. osGetSitTargetRot returnrotation arguments + tooltipReturns the rotation of the sit target of the object containing the script. osGetSittingAvatarsCount @@ -7998,16 +8120,19 @@ arguments object_idtypekey + tooltipReturns the number of avatars seated on a given object (key). osGetSittingAvatarsCount returninteger arguments + tooltipReturns the number of avatars seated on the object containing the script. osGetStandTarget returnvector arguments + tooltipReturns the stand offset of the object containing the script. osGetSunParam @@ -8015,6 +8140,7 @@ arguments paramtypestring + tooltipReturns parameters about the skybox. osGetTerrainHeight @@ -8023,6 +8149,7 @@ xtypeinteger ytypeinteger + tooltipReturns the height of terrain at a given x and y coordinate (meters). osGetWindParam @@ -8031,6 +8158,7 @@ plugintypestring paramtypestring + tooltipGet a parameter from a given wind plugin. osGiveLinkInventory @@ -8039,15 +8167,17 @@ destinationtypekey inventorytypestring + tooltipSend a given inventory item (name) from a given link to a destination object or avatar (key). osGiveLinkInventoryList arguments linkNumbertypeinteger destinationtypekey - categorytypestring + folderNametypestring inventorytypelist + tooltipSend a list of inventory items (key) in a given link to a given destination avatar (key) creating a new named folder. osInviteToGroup @@ -8055,6 +8185,7 @@ arguments agentIdtypekey + tooltipSends a group invite to a given avatar for the group the object belongs to. osIsNotValidNumber @@ -8062,6 +8193,7 @@ arguments vtypefloat + tooltipReturns an integer whether a given number is out of bounds or NaN. osIsNpc @@ -8069,6 +8201,7 @@ arguments npctypekey + tooltipReturns an integer whether a given key is an NPC or avatar. osIsUUID @@ -8076,6 +8209,7 @@ arguments thingtypestring + tooltipReturns an integer whether a given string is a UUID or not. osKey2Name @@ -8083,6 +8217,7 @@ arguments idtypestring + tooltipReturns the avatar name given their key. osKickAvatar @@ -8090,6 +8225,7 @@ agentIdtypekey alerttypestring + tooltipDisconnects an avatar from the simulator by first and last name or avatar key. osKickAvatar @@ -8098,6 +8234,7 @@ SurNametypestring alerttypestring + tooltipDisconnects an avatar from the simulator by first and last name or avatar key. osLinkParticleSystem @@ -8105,6 +8242,19 @@ linknumbertypeinteger rulestypelist + tooltipSets the particle system rules of a given link. + + osListenRegex + + returninteger + arguments + channelIDtypeinteger + nametypestring + IDtypestring + msgtypestring + regexBitfieldtypeinteger + + tooltipCreates a listener that parses matches for name and message through regex. osListFindListNext @@ -8116,6 +8266,7 @@ endtypeinteger instancetypeinteger + tooltipReturns the nth index of the sublist constrained with start and end count. osListSortInPlace @@ -8124,6 +8275,7 @@ stridetypeinteger ascendingtypeinteger + tooltipSorts a given list in place. osListSortInPlaceStrided @@ -8133,21 +8285,25 @@ stride_indextypeinteger ascendingtypeinteger + tooltipSorts a given strided list in place. osLoadedCreationDate returnstring arguments + tooltipReturns the creation date of the loaded region scene data. osLoadedCreationID returnstring arguments + tooltipReturns the original region UUID of the loaded region scene data. osLoadedCreationTime returnstring arguments + tooltipReturns the creation time of the loaded region scene data. osLocalTeleportAgent @@ -8158,6 +8314,7 @@ lookattypevector flagstypeinteger + tooltipTeleport a given avatar (key) to a given position and rotation as look at vector with a velocity vector and teleport flags. osLoopSound @@ -8166,6 +8323,7 @@ soundtypestring volumetypefloat + tooltipSets a looping sound and volume of a given link. osLoopSoundMaster @@ -8174,6 +8332,7 @@ soundtypestring volumetypefloat + tooltipSets a looping sound and volume of a given link as master. osLoopSoundSlave @@ -8182,13 +8341,7 @@ soundtypestring volumetypefloat - - osMakeNotecard - - arguments - notecardNametypestring - contentstypelist - + tooltipSets a looping sound and volume of a given link as slave. osMakeNotecard @@ -8196,6 +8349,15 @@ notecardNametypestring contentstypestring + tooltipCreates a new notecard in the primitive inventory with given contents. + + osMakeNotecard + + arguments + notecardNametypestring + contentstypelist + + tooltipCreates a new notecard in the primitive inventory with given contents. osMatchString @@ -8205,6 +8367,7 @@ patterntypestring starttypeinteger + tooltipReturns a list of matches from a given string from a given start. osMax @@ -8213,6 +8376,7 @@ atypefloat btypefloat + tooltipReturns the larger of two given numbers. osMessageAttachments @@ -8222,6 +8386,7 @@ attachmentPointstypelist flagstypeinteger + tooltipSends a message as dataserver event to a given attachment based on the avatar key and attachment point. Can be constrained further with options. osMessageObject @@ -8229,6 +8394,7 @@ objectUUIDtypekey messagetypestring + tooltipDirectly send a message as dataserver event to a given object by its key. osMin @@ -8237,6 +8403,7 @@ atypefloat btypefloat + tooltipReturns the smaller of two given numbers. osMovePen @@ -8246,6 +8413,18 @@ xtypeinteger ytypeinteger + tooltipMove the drawing position to a given coordinate (pixels x y). + + osNpcCreate + + returnkey + arguments + usertypestring + nametypestring + positiontypevector + notecardtypestring + + tooltipCreates a new NPC with a given name at a given position using a supplied notecard for appearance. osNpcCreate @@ -8257,16 +8436,7 @@ notecardtypestring optionstypeinteger - - osNpcCreate - - returnkey - arguments - usertypestring - nametypestring - positiontypevector - notecardtypestring - + tooltipCreates a new NPC with a given name at a given position using a supplied notecard for appearance and additional options. osNpcGetOwner @@ -8274,6 +8444,7 @@ arguments npctypekey + tooltipReturns the owner key of a given NPC. NULL_KEY if the NPC is unowned. osNpcGetPos @@ -8281,6 +8452,7 @@ arguments npctypekey + tooltipReturns the position of a given NPC (key). osNpcGetRot @@ -8288,6 +8460,7 @@ arguments npctypekey + tooltipReturns the current rotation of a given NPC (key). osNpcLoadAppearance @@ -8295,6 +8468,7 @@ npctypekey notecardtypestring + tooltipLoads a given appearance notecard to a given NPC (key). osNpcLookAt @@ -8305,6 +8479,7 @@ objkeytypekey offsettypevector + tooltipSets the look at direction of a NPC to a given object (key) and offset. osNpcMoveTo @@ -8312,6 +8487,7 @@ npctypekey positiontypevector + tooltipMoves a given NPC (key) to a position. osNpcMoveToTarget @@ -8320,6 +8496,7 @@ targettypevector optionstypeinteger + tooltipSets a target for a given NPC (key) to move towards. osNpcPlayAnimation @@ -8327,12 +8504,14 @@ npctypekey animationtypestring + tooltipInstructs a given NPC (key) to play a given animation (name) from the inventory of the object containing the script. osNpcRemove arguments npctypekey + tooltipRemoves a given NPC (key). osNpcSaveAppearance @@ -8342,6 +8521,7 @@ notecardtypestring includeHudstypeinteger + tooltipCreates a new notecard with a given name from a given NPC (key) with the option to include HUDs. osNpcSaveAppearance @@ -8350,13 +8530,7 @@ npctypekey notecardtypestring - - osNpcSay - - arguments - npctypekey - messagetypestring - + tooltipCreates a new notecard with a given name from a given NPC (key). osNpcSay @@ -8365,6 +8539,15 @@ channeltypeinteger messagetypestring + tooltipInstructs a given NPC (key) to say a given message on a given channel. + + osNpcSay + + arguments + npctypekey + messagetypestring + + tooltipInstructs a given NPC (key) to say a given message. osNpcSayTo @@ -8374,6 +8557,7 @@ channeltypeinteger msgtypestring + tooltipInstructs a given NPC (key) to say to a given avatar (key) a given message on a given channel. osNpcSetProfileAbout @@ -8381,6 +8565,7 @@ npctypekey abouttypestring + tooltipSets a given NPC (key) profile about text to a given string. osNpcSetProfileImage @@ -8388,6 +8573,7 @@ npctypekey imagetypestring + tooltipSets a given NPC (key) profile image to a given image (asset UUID). osNpcSetRot @@ -8395,6 +8581,7 @@ npctypekey rottyperotation + tooltipSets the rotation of a given NPC (key). osNpcShout @@ -8403,6 +8590,7 @@ channeltypeinteger messagetypestring + tooltipInstructs a given NPC (key) to shout a given message on a given channel. osNpcSit @@ -8411,12 +8599,14 @@ targettypekey optionstypeinteger + tooltipInstructs a given NPC (key) to sit on a given object (UUID). osNpcStand arguments npctypekey + tooltipInstructs a given NPC (key) to stand up. osNpcStopAnimation @@ -8424,12 +8614,14 @@ npctypekey animationtypestring + tooltipInstructs a given NPC (key) to stop playing a given animation (name). osNpcStopMoveToTarget arguments npctypekey + tooltipRemoves the target a given NPC (key) is moving towards. osNpcTouch @@ -8438,6 +8630,7 @@ object_keytypekey link_numtypeinteger + tooltipInstructs a given NPC (key) to touch a given object (UUID) and link. osNpcWhisper @@ -8446,6 +8639,7 @@ channeltypeinteger messagetypestring + tooltipInstructs a given NPC (key) to whisper a given message on a given channel. osOldList2ListStrided @@ -8456,6 +8650,7 @@ endtypeinteger stridetypeinteger + tooltipReturns a strided list of a given list. osOwnerSaveAppearance @@ -8464,6 +8659,7 @@ notecardtypestring includeHudstypeinteger + tooltipSave appearance of object owner (with the choice to include Huds or no) to a notecard in the primitive inventory. osOwnerSaveAppearance @@ -8471,6 +8667,7 @@ arguments notecardtypestring + tooltipSave appearance of object owner to a notecard in the primitive inventory. osParcelJoin @@ -8478,6 +8675,7 @@ pos1typevector pos2typevector + tooltipJoins a parcel with another based on positions within both parcels as vectors. osParcelSetDetails @@ -8485,6 +8683,7 @@ postypevector rulestypelist + tooltipDEPRECATED. Use osSetParcelDetails instead. osParcelSubdivide @@ -8492,12 +8691,14 @@ pos1typevector pos2typevector + tooltipSubdivides a parcel as rectangle given a start and end position as vector. osParticleSystem arguments rulestypelist + tooltipSets the particle system rules of the object containing the script. osPlaySound @@ -8506,6 +8707,7 @@ soundtypestring volumetypefloat + tooltipSets a sound and volume of a given link. osPlaySoundSlave @@ -8514,6 +8716,7 @@ soundtypestring volumetypefloat + tooltipSets a sound and volume of a given link as slave. osPreloadSound @@ -8521,6 +8724,7 @@ linknumtypeinteger soundtypestring + tooltipSets a sound to preload for a given link. osRegexIsMatch @@ -8529,6 +8733,7 @@ inputtypestring patterntypestring + tooltipReturns an integer whether the input string matches a regex pattern. osRegionNotice @@ -8536,12 +8741,22 @@ agentIDtypekey msgtypestring + tooltipSend a notice message to a given avatar in the region. osRegionNotice arguments msgtypestring + tooltipSend a notice message to all avatars in the region. + + osRegionRestart + + returninteger + arguments + secondstypefloat + + tooltipSchedule a region restart seconds in the future. osRegionRestart @@ -8550,13 +8765,7 @@ secondstypefloat msgtypestring - - osRegionRestart - - returninteger - arguments - secondstypefloat - + tooltipSchedule a region restart with broadcast message seconds in the future. osRemoveLinkInventory @@ -8564,6 +8773,7 @@ linkNumbertypeinteger nametypestring + tooltipRemoves a inventory item by name in a given link. osReplaceAgentEnvironment @@ -8573,6 +8783,7 @@ transitiontypeinteger daycycletypestring + tooltipSets the environment of a given avatar (key) to a given settings item (asset UUID) with transition time. osReplaceParcelEnvironment @@ -8581,6 +8792,21 @@ transitiontypeinteger daycycletypestring + tooltipSets the environment of the current parcel to a given settings item (asset UUID) with transition time. + + osReplaceRegionEnvironment + + returninteger + arguments + transitiontypeinteger + daycycletypestring + daylentypefloat + dayoffsettypefloat + altitude1typefloat + altitude2typefloat + altitude3typefloat + + tooltipAlters the region environment base parameters of a given settings item (asset UUID) with transition time. osReplaceString @@ -8592,6 +8818,7 @@ counttypeinteger starttypeinteger + tooltipReturns a string with replaced substrings given a match pattern from a given start for a given number of matches. osRequestSecureURL @@ -8599,6 +8826,7 @@ arguments optionstypelist + tooltipRequest a new secure URL and directly return the assigned key. osRequestURL @@ -8606,12 +8834,14 @@ arguments optionstypelist + tooltipRequest a new URL and directly return the assigned key. osResetAllScripts arguments AllLinksettypeinteger + tooltipResets all scripts in the inventory of a link, the entire linkset or itself. osResetEnvironment @@ -8620,6 +8850,7 @@ parcelOrRegiontypeinteger transitiontypeinteger + tooltipResets either the parcel or region environment to their default values. osRound @@ -8628,6 +8859,16 @@ valuetypefloat digitstypeinteger + tooltipRounds a given value to a specified amount of digits. + + osSendAlertModal + + arguments + agentKeytypestring + alerttypestring + typetypeinteger + + tooltipSends a blocking modal or notification modal with a given message to a given avatar. osSetContentType @@ -8635,6 +8876,7 @@ idtypekey typetypestring + tooltipSets the response type of a HTTP request or response osSetDynamicTextureData @@ -8646,6 +8888,7 @@ extraParamstypestring timertypeinteger + tooltipGenerate a dynamic texture from a given draw string, returns the texture UUID, applies to all faces. osSetDynamicTextureDataFace @@ -8658,6 +8901,7 @@ timertypeinteger facetypeinteger + tooltipGenerate a dynamic texture from a given draw string, returns the texture UUID, applies to a given face. osSetDynamicTextureURL @@ -8669,6 +8913,7 @@ extraParamstypestring timertypeinteger + tooltipGenerate a dynamic texture from a given URL, returns the texture UUID, applies to all faces. osSetEstateSunSettings @@ -8676,6 +8921,7 @@ sunFixedtypeinteger sunHourtypefloat + tooltipSet sun type (fixed, daycycle) and time offset for the estate sun. osSetFontName @@ -8684,6 +8930,7 @@ drawListtypestring fontNametypestring + tooltipSet the name of the font that will be used by osDrawText.\n- Threat Level: Not Checked. osSetFontSize @@ -8692,6 +8939,7 @@ drawListtypestring fontSizetypeinteger + tooltipSets the size of the font used by subsequent osDrawTextText() calls. The fontSize parameter represents the font height in points. osSetHealRate @@ -8699,6 +8947,7 @@ agentIdtypekey healthtypefloat + tooltipSets the rate of healing for a given avatar to a given amount. osSetHealth @@ -8706,6 +8955,7 @@ agentIdtypekey healthtypefloat + tooltipSets the health of a given avatar to a given amount. osSetInertia @@ -8715,6 +8965,7 @@ principalInertiaScaledtypevector rottyperotation + tooltipSets the inertia data for the object containing the script. osSetInertiaAsBox @@ -8724,6 +8975,7 @@ centerOfMasstypevector rottyperotation + tooltipSets the inertia data for the object containing the script based on a box shape bounding box calculation. osSetInertiaAsCylinder @@ -8734,6 +8986,7 @@ centerOfMasstypevector lslrottyperotation + tooltipSets the inertia data for the object containing the script based on a cylindrical bounding box calculation. osSetInertiaAsSphere @@ -8742,6 +8995,7 @@ radiustypefloat centerOfMasstypevector + tooltipSets the inertia data for the object containing the script based on a spherical bounding box calculation. osSetLinkSitActiveRange @@ -8749,6 +9003,7 @@ linkNumbertypeinteger vtypefloat + tooltipSets the max distance for allowing avatars to sit on a given link.. osSetLinkStandTarget @@ -8756,12 +9011,14 @@ linkNumbertypeinteger vtypevector + tooltipSets the stand offset from the position of a given link. osSetOwnerSpeed arguments SpeedModifiertypefloat + tooltipSets a modifier for the movement speed of the object owner. osSetParcelDetails @@ -8769,24 +9026,28 @@ postypevector rulestypelist + tooltipSets PARCEl_FLAGS for a parcel given a vector inside the parcel. osSetParcelMediaURL arguments urltypestring + tooltipSets the current parcel media URL. osSetParcelMusicURL arguments urltypestring + tooltipSets the current parcel music URL. osSetParcelSIPAddress arguments SIPAddresstypestring + tooltipSets the voice module SIP address to a given address. osSetPenCap @@ -8796,22 +9057,7 @@ directiontypestring typetypestring - - osSetPenColor - - returnstring - arguments - drawListtypestring - colortypestring - - - osSetPenColor - - returnstring - arguments - drawListtypestring - colortypevector - + tooltipSets the start, end or both caps to either "diamond", "arrow", "round", or default "flat" shape. osSetPenColor @@ -8821,6 +9067,25 @@ colortypevector alphatypefloat + tooltipThis sets the drawing color to either a named .NET color, a 32-bit color value (formatted as eight hexadecimal digits in the format aarrggbb, representing the eight-bit alpha, red, green and blue channels) or a LSL vector color and alpha float value. + + osSetPenColor + + returnstring + arguments + drawListtypestring + colortypestring + + tooltipThis sets the drawing color to either a named .NET color, a 32-bit color value (formatted as eight hexadecimal digits in the format aarrggbb, representing the eight-bit alpha, red, green and blue channels) or a LSL vector color and alpha float value. + + osSetPenColor + + returnstring + arguments + drawListtypestring + colortypevector + + tooltipThis sets the drawing color to either a named .NET color, a 32-bit color value (formatted as eight hexadecimal digits in the format aarrggbb, representing the eight-bit alpha, red, green and blue channels) or a LSL vector color and alpha float value. osSetPenColour @@ -8829,6 +9094,7 @@ drawListtypestring colourtypestring + tooltipDEPRECATED. Use osSetPenColor instead. osSetPenSize @@ -8837,12 +9103,14 @@ drawListtypestring penSizetypeinteger + tooltipSets the pen size to a square of penSize pixels by penSize pixels. If penSize is an odd number, the pen will be exactly centered on the coordinates provided in the various drawing commands. osSetPrimFloatOnWater arguments floatYNtypeinteger + tooltipSets whether the object should float on water. osSetPrimitiveParams @@ -8850,6 +9118,18 @@ primtypekey rulestypelist + tooltipSets primitive params of a given primitive (object UUID). + + osSetProjectionParams + + arguments + projectiontypeinteger + texturetypekey + fovtypefloat + focustypefloat + ambtypefloat + + tooltipSets the light projection parameters of the object containing the script. osSetProjectionParams @@ -8861,6 +9141,7 @@ focustypefloat ambtypefloat + tooltipSets the light projection parameters of a given primitive (object UUID). osSetProjectionParams @@ -8872,16 +9153,7 @@ focustypefloat ambtypefloat - - osSetProjectionParams - - arguments - projectiontypeinteger - texturetypekey - fovtypefloat - focustypefloat - ambtypefloat - + tooltipSets the light projection parameters of a given link. osSetRegionSunSettings @@ -8890,18 +9162,21 @@ sunFixedtypeinteger sunHourtypefloat + tooltipSet whether to use estate sun, sun type (fixed, daycycle) and time offset for the region. osSetRegionWaterHeight arguments heighttypefloat + tooltipSet the water height of the region. osSetSitActiveRange arguments vtypefloat + tooltipSets the max distance for allowing avatars to sit on the object containing the script. osSetSoundRadius @@ -8909,6 +9184,7 @@ linknumtypeinteger radiustypefloat + tooltipSets the sound radius for a given link. osSetSpeed @@ -8916,12 +9192,14 @@ UUIDtypestring SpeedModifiertypefloat + tooltipSets a modifier for the movement speed of a given avatar. osSetStandTarget arguments vtypevector + tooltipSets the stand offset from the position of the object containing the script. osSetSunParam @@ -8929,6 +9207,7 @@ paramtypestring valuetypefloat + tooltipNot implemented. osSetTerrainHeight @@ -8938,6 +9217,7 @@ ytypeinteger valtypefloat + tooltipSet the terrain height at a given x and y coordinate (meters). osSetTerrainTexture @@ -8945,6 +9225,7 @@ leveltypeinteger texturetypekey + tooltipSets the terrain texture for a given level. osSetTerrainTextureHeight @@ -8953,6 +9234,7 @@ lowtypefloat hightypefloat + tooltipSets the texture low and high values for a given region corner. osSetWindParam @@ -8961,6 +9243,7 @@ paramtypestring valuetypefloat + tooltipSet a parameter in a given wind plugin. osSHA256 @@ -8968,15 +9251,7 @@ arguments inputtypestring - - osSlerp - - returnrotation - arguments - atyperotation - btyperotation - amounttypefloat - + tooltipReturns the SHA256 representation of the input string. osSlerp @@ -8986,12 +9261,24 @@ btypevector amounttypefloat + tooltipReturns a spherical interpolation of two vectors shifted by amount. + + osSlerp + + returnrotation + arguments + atyperotation + btyperotation + amounttypefloat + + tooltipReturns a spherical interpolation of two rotations shifted by amount. osStopSound arguments linknumtypeinteger + tooltipStops the sound for a given link. osStringEndsWith @@ -9001,6 +9288,17 @@ valuetypestring ignorecasetypeinteger + tooltipReturns an integer whether a string ends with another string. + + osStringIndexOf + + returninteger + arguments + srctypestring + valuetypestring + ignorecasetypeinteger + + tooltipReturns the index of a substring of a given string. osStringIndexOf @@ -9012,15 +9310,7 @@ counttypeinteger ignorecasetypeinteger - - osStringIndexOf - - returninteger - arguments - srctypestring - valuetypestring - ignorecasetypeinteger - + tooltipReturns the index of a substring of given string starting from an index and match count. osStringLastIndexOf @@ -9030,6 +9320,7 @@ valuetypestring ignorecasetypeinteger + tooltipReturns the index of the last substring of a given string. osStringLastIndexOf @@ -9041,6 +9332,7 @@ counttypeinteger ignorecasetypeinteger + tooltipReturns the index of the last substring of a given string starting from an index and match count. osStringRemove @@ -9050,6 +9342,7 @@ starttypeinteger counttypeinteger + tooltipReturns the remainder of a given string with characters from start index and count removed. osStringReplace @@ -9059,6 +9352,7 @@ oldvaluetypestring newvaluetypestring + tooltipReturns a string with a substring replaced with another string. osStringStartsWith @@ -9068,14 +9362,7 @@ valuetypestring ignorecasetypeinteger - - osStringSubString - - returnstring - arguments - srctypestring - starttypeinteger - + tooltipReturns an integer whether a string starts with another string. osStringSubString @@ -9085,6 +9372,16 @@ starttypeinteger lengthtypeinteger + tooltipReturns a substring from start index and length. + + osStringSubString + + returnstring + arguments + srctypestring + starttypeinteger + + tooltipReturns the remainder of a string from start index. osSunGetParam @@ -9092,6 +9389,7 @@ arguments paramtypestring + tooltipDEPRECATED. Use osGetSunParam instead. osSunSetParam @@ -9099,15 +9397,7 @@ paramtypestring valuetypefloat - - osTeleportAgent - - arguments - agenttypestring - regionNametypestring - positiontypevector - lookattypevector - + tooltipDEPRECATED. Use osSetSunParam instead. osTeleportAgent @@ -9118,6 +9408,7 @@ positiontypevector lookattypevector + tooltipTeleport a given avatar (key) to a given region by grid position and local position and rotation as look at vector. osTeleportAgent @@ -9126,6 +9417,17 @@ positiontypevector lookattypevector + tooltipTeleport a given avatar (key) to a given position and rotation as look at vector. + + osTeleportAgent + + arguments + agenttypestring + regionNametypestring + positiontypevector + lookattypevector + + tooltipTeleport a given avatar (key) to a given region by name and local position and rotatation as look at vector. osTeleportObject @@ -9136,13 +9438,7 @@ targetrotationtyperotation flagstypeinteger - - osTeleportOwner - - arguments - positiontypevector - lookattypevector - + tooltipTeleport a given primitive (object UUID) to a given position and rotation. osTeleportOwner @@ -9152,6 +9448,15 @@ positiontypevector lookattypevector + tooltipTeleport the object owner to a given region by grid position and local position and rotation as look at vector. + + osTeleportOwner + + arguments + positiontypevector + lookattypevector + + tooltipTeleport the object owner to a given position and rotation as look at vector. osTeleportOwner @@ -9160,6 +9465,7 @@ positiontypevector lookattypevector + tooltipTeleport the object owner to a given region by name and local position and rotation as look at vector. osTemperature2sRGB @@ -9167,6 +9473,7 @@ arguments dtemptypefloat + tooltipReturns the color vector of a given color temperature. osTerrainFlush @@ -9180,6 +9487,7 @@ xtypeinteger ytypeinteger + tooltipDEPRECATED. Use osGetTerrainHeight instead. osTerrainSetHeight @@ -9189,6 +9497,7 @@ ytypeinteger valtypefloat + tooltipDEPRECATED. Use osSetTerrainHeight instead. osTriggerSound @@ -9197,6 +9506,18 @@ soundtypestring volumetypefloat + tooltipTrigger a given preloaded sound with volume for a given link. + + osTriggerSoundLimited + + arguments + linknumtypeinteger + soundtypestring + volumetypefloat + top_north_easttypevector + bottom_south_westtypevector + + tooltipTrigger a given preloaded sound with volume and axis-aligned bounding box for a given link. osUnixTimeToTimestamp @@ -9204,6 +9525,7 @@ arguments timetypeinteger + tooltipReturns the timestamp string for a given unix epoch (seconds). osVecDistSquare @@ -9212,6 +9534,7 @@ atypevector btypevector + tooltipReturns the difference of two squared vectors. osVecMagSquare @@ -9219,17 +9542,20 @@ arguments atypevector + tooltipReturns the squared values of a vector multiplied with each other. osVolumeDetect arguments detecttypeinteger + tooltipSets or unsets volume detection for the object containing the script. osWindActiveModelPluginName returnstring arguments + tooltipReturns the name of the currently enabled wind plugin. \ No newline at end of file