OsGetPhysicsEngineType

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(new page for osGetPhysicsEngineType())
 
m (small corrections for cut-and-paste errors)
Line 1: Line 1:
 
{{osslfunc
 
{{osslfunc
 
|threat_level=High
 
|threat_level=High
|function_syntax=string osGetSimulatorVersion()
+
|function_syntax=string osGetPhysicsEngineType()
 
|ossl_example=<source lang = "lsl">
 
|ossl_example=<source lang = "lsl">
 
// ----------------------------------------------------------------
 
// ----------------------------------------------------------------
 
// Example / Sample Script to show function use.
 
// Example / Sample Script to show function use.
 
//
 
//
// Script Title:    osGetSimulatorVersion.lsl
+
// Script Title:    osGetPhysicsEngineType.lsl
 
// Script Author:   
 
// Script Author:   
 
// Threat Level:    High
 
// Threat Level:    High
// Script Source:  http://opensimulator.org/wiki/OsGetSimulatorVersion
+
// Script Source:  http://opensimulator.org/wiki/OsGetPhysicsEngineType
 
//
 
//
 
// Notes: See Script Source reference for more detailed information
 
// Notes: See Script Source reference for more detailed information

Revision as of 16:05, 14 January 2013

string osGetPhysicsEngineType()
This function returns a string containing the current simulator version.
Threat Level High
Permissions No permissions specified
Extra Delay No function delay specified
Example(s)
// ----------------------------------------------------------------
// Example / Sample Script to show function use.
//
// Script Title:    osGetPhysicsEngineType.lsl
// Script Author:   
// Threat Level:    High
// Script Source:   http://opensimulator.org/wiki/OsGetPhysicsEngineType
//
// 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 osGetPhysicsEngineType();
//
// Example of osGetPhysicsEngineType()
//
default
{
    state_entry() // display @ start
    {
        llSay(0, "Touch me to get the physics engine type using osGetPhysicsEngineType");
    }
    touch_end(integer num) // Tell toucher our version
    {
        llInstantMessage(llDetectedKey(0), "Simulator Version: "+osGetPhysicsEngineType());
    }
}
Personal tools
General
About This Wiki