OsGetScriptEngineName

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(New page: '''OsGetScriptEngineName'''() This script function returns the name of the script engine currently being used. Because engine-specific bugs may be exploited upon learning which script en...)
 
m (Added permissions and delay information)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''OsGetScriptEngineName'''()
+
{{osslfunc
 
+
|threat_level=High
This script function returns the name of the script engine currently being used.  Because engine-specific bugs may be exploited upon learning which script engine the simulator is running, this function has a threat level of High.
+
|permissions=true
 
+
|delay=0
--[[User:ZauberExonar|ZauberExonar]] 08:23, 5 February 2010 (UTC)
+
|function_syntax=string osGetScriptEngineName()
 +
|ossl_example=<source lang = "lsl">
 +
// ----------------------------------------------------------------
 +
// Example / Sample Script to show function use.
 +
//
 +
// Script Title:    osGetScriptEngineName.lsl
 +
// Script Author:  WSM
 +
// Threat Level:    High
 +
// Script Source:  http://opensimulator.org/wiki/OsGetScriptEngineName
 +
//
 +
// Notes: See Script Source reference for more detailed information
 +
// This sample is full opensource and available to use as you see fit and desire.
 +
// Threat Levels only apply to OSSL & AA Functions
 +
// See http://opensimulator.org/wiki/Threat_level
 +
// ================================================================
 +
// Inworld Script Line:    string osGetScriptEngineName();
 +
//
 +
// Example of osGetScriptEngineName()
 +
//
 +
default
 +
{
 +
    state_entry()
 +
    {
 +
        llSay(0,"Touch to get Script Engine Name");
 +
    }
 +
    touch_end(integer total_num)
 +
    {
 +
        llSay(0,"The Script Engine Name is: "+osGetScriptEngineName());
 +
    }
 +
}
 +
</source>
 +
|description=Returns the name of the script engine which is currently enabled on the server.
 +
|
 +
}}

Latest revision as of 19:07, 25 October 2017

string osGetScriptEngineName()
Returns the name of the script engine which is currently enabled on the server.
Threat Level High
Permissions Use of this function is always allowed by default
Extra Delay 0 seconds
Example(s)
// ----------------------------------------------------------------
// Example / Sample Script to show function use.
//
// Script Title:    osGetScriptEngineName.lsl
// Script Author:   WSM
// Threat Level:    High
// Script Source:   http://opensimulator.org/wiki/OsGetScriptEngineName
//
// Notes: See Script Source reference for more detailed information
// This sample is full opensource and available to use as you see fit and desire.
// Threat Levels only apply to OSSL & AA Functions
// See http://opensimulator.org/wiki/Threat_level
// ================================================================
// Inworld Script Line:    string osGetScriptEngineName();
//
// Example of osGetScriptEngineName()
//
default
{
    state_entry()
    {
        llSay(0,"Touch to get Script Engine Name");
    }
    touch_end(integer total_num)
    {
        llSay(0,"The Script Engine Name is: "+osGetScriptEngineName());
    }
}
Personal tools
General
About This Wiki