OsGetSimulatorVersion
From OpenSimulator
(Difference between revisions)
m (Added permissions and delay information) |
|||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | OsGetSimulatorVersion() | + | {{osslfunc |
− | + | |threat_level=High | |
− | This function returns a string containing the current simulator version. | + | |permissions=true |
− | + | |delay=0 | |
− | + | |function_syntax=string osGetSimulatorVersion() | |
− | + | |ossl_example=<source lang = "lsl"> | |
− | + | // ---------------------------------------------------------------- | |
+ | // Example / Sample Script to show function use. | ||
+ | // | ||
+ | // Script Title: osGetSimulatorVersion.lsl | ||
+ | // Script Author: | ||
+ | // Threat Level: High | ||
+ | // Script Source: http://opensimulator.org/wiki/OsGetSimulatorVersion | ||
+ | // | ||
+ | // 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 osGetSimulatorVersion(); | ||
+ | // | ||
+ | // Example of osGetSimulatorVersion() | ||
+ | // | ||
+ | default | ||
+ | { | ||
+ | state_entry() // display @ start | ||
+ | { | ||
+ | llSay(0, "Touch me to get the Simulator Version Information using osGetSimulatorVersion"); | ||
+ | } | ||
+ | touch_end(integer num) // Tell toucher our version | ||
+ | { | ||
+ | llInstantMessage(llDetectedKey(0), "Simulator Version: "+osGetSimulatorVersion()); | ||
+ | } | ||
+ | } | ||
+ | </source> | ||
+ | |description=This function returns a string containing the current simulator version. | ||
+ | | | ||
+ | }} |
Latest revision as of 20:12, 25 October 2017
string osGetSimulatorVersion()
| |
This function returns a string containing the current simulator version. | |
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: osGetSimulatorVersion.lsl // Script Author: // Threat Level: High // Script Source: http://opensimulator.org/wiki/OsGetSimulatorVersion // // 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 osGetSimulatorVersion(); // // Example of osGetSimulatorVersion() // default { state_entry() // display @ start { llSay(0, "Touch me to get the Simulator Version Information using osGetSimulatorVersion"); } touch_end(integer num) // Tell toucher our version { llInstantMessage(llDetectedKey(0), "Simulator Version: "+osGetSimulatorVersion()); } } |