OSSL Implemented

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(integrated into OSSLFunction category)
 
(37 intermediate revisions by 7 users not shown)
Line 1: Line 1:
__NOTOC__
+
#Redirect [[:Category:OSSL Functions]]
{{Template:Quicklinks}}
+
<br />
+
 
+
{| border=1 style="border-collapse:collapse;th background-color:#666;width:100%;text-align:left;"
+
! style="background-color:#D2ECD2;" | Function
+
! style="background-color:#D2ECD2;" | Explanation
+
! style="background-color:#D2ECD2;" | Examples
+
! style="background-color:#D2ECD2;" | Threat Level
+
|-
+
| string osSetDynamicTextureURL(string dynamicID, string contentType, string url, string extraParams, int refreshTimer);
+
| Loads a web texture on a prim. Should work for any image URL (including php scripts) that Opensim can render. [Note refreshTimer may not yet be implemented, use a timer event and recall the function to get  the same effect]
+
| [[osSetDynamicTextureURL_example1|example 1]]
+
[[osSetDynamictextureURL_example2|example 2]]
+
| VeryLow
+
|-
+
|-
+
| osSetDynamicTextureData("", "vector", drawList, "1024", 0);
+
| Writes text and vector graphics onto a prim face. See list of implemented [[OSSL_TextureDrawing|Functions]]. NOTE:As of r8206 (above v0.6.2) width,height and alpha value can be passed e.g.  osSetDynamicTextureData("", "vector", drawList, "width:64,height:1024:alpha:0", 0);
+
To turn off the alpha layer completely use "alpha:false" in the optional parameters
+
| [[osSetDynamicdata_example1|example 1]]
+
| VeryLow
+
|-
+
| double osTerrainGetHeight(int x, int y);
+
| Gets height of terrain
+
|
+
| None
+
|-
+
|-
+
| int osTerrainSetHeight(int x, int y);
+
| Sets height of terrain
+
|
+
| High
+
|-
+
|-
+
| int osRegionRestart(double seconds);
+
| Restarts the region
+
|
+
| High
+
|-
+
|-
+
| void osRegionNotice(string msg);
+
| Sends a notice to the region
+
|
+
| VeryHigh
+
|-
+
|-
+
| System.Collections.Hashtable osParseJSON(string JSON);
+
| returns a hashtable containing the structured JSON contents (c# only)
+
| [[osParseJSON_example1|example 1]]
+
| None
+
|-
+
|-
+
| osMessageObject(key objectId, string message);
+
| sends a string to the object identified by objectId, the receiving object requires to implement the method dataserver( key queryid, string data ) in a contained script(s). The queryid passed will be the id of the calling object.
+
|
+
| Low
+
|-
+
|-
+
| osTeleportAgent(key agentId, string regionName, vector position, vector lookAt);
+
| Teleports agent ''agentId'' to region ''regionName'', region-local position ''position'', with looking direction ''lookAt'' without asking the user first (in contrast to ''llMapDestination''). This function works only in scripts '''owned by''' the region's master-avatar.
+
|
+
| High
+
|-
+
|-
+
| osTeleportAgent(key agentId, vector position, vector lookAt);
+
| Teleports agent ''agentId'' to position ''position'' in the same region, with looking direction ''lookAt'' without asking the user first (in contrast to ''llMapDestination''). This function works only in scripts '''owned by''' the region's master-avatar.
+
|
+
| High
+
|-
+
|-
+
| osConsoleCommand(string command);
+
| Issues command as if from the server console. "Severe" threat level. Eg.: osConsoleCommand("link-region X Y URL port").
+
|
+
| Severe
+
|-
+
|-
+
| osMakeNotecard(string cardname, list cardlines);
+
| Writes a new notecard into the containing prim's inventory. The list parameter may contain only strings. Eg.: osMakeNotecard("new card", ["line-1", "line-2", "line-3"]).
+
|
+
| High
+
|-
+
|-
+
| string osGetGridNick();
+
| Return the nick name of the grid as per the config .ini file.
+
|
+
| Moderate
+
|-
+
|-
+
| string osGetGridName();
+
| Return the name of the grid as per the config .ini file.
+
|
+
| Moderate
+
|-
+
|-
+
| string osGetGridLoginURI();
+
| Return the Login URI of the grid as per the config .ini file.
+
|
+
| Moderate
+
|-
+
|-
+
| string osFormatString(string format, list params);
+
| Return the string with parameters substituted into it (format comes from .NET String.Format class) in . Parameters are specified positionally. Example: llOwnerSay(osFormatString("{0}: pos is {1}",[llGetName(), llGetPos()]));
+
|
+
| Low
+
|-
+
|-
+
| list osMatchString(string source, string pattern);
+
| Return a list of matches for the pattern and its components inside the source string. The pattern is a regular expression with syntax defined by the .NET Regex class. Each match in the result is the string that matched and its position in the source.
+
|
+
| Low
+
|-
+
|-
+
[[Category:Users]]
+
[[Category:Development]]
+

Latest revision as of 06:56, 30 June 2011

  1. Redirect Category:OSSL Functions
Personal tools
General
About This Wiki