OsGetCurrentSunHour

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(New page: '''float osGetCurrentSunHour()''' <source lang="lsl"> default { state_entry() { llSay(0, "Current sun hour: "+(string)osGetCurrentSunHour()); } } </source>)
 
m (Added permissions and delay information)
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
'''float osGetCurrentSunHour()'''
+
{{osslfunc
 
+
|threat_level=ignored
<source lang="lsl">
+
|permissions=true
 +
|delay=0
 +
|function_syntax=float osGetCurrentSunHour()
 +
|ossl_example=<source lang="lsl">
 +
//
 +
//osGetCurrentSunHour() example, by Tom Earth.
 +
//
 
default
 
default
 
{
 
{
Line 10: Line 16:
 
}
 
}
 
</source>
 
</source>
 +
|description=Returns a float value of the current sun hour (24 hour clock). Hour 0 is sunrise.
 +
|
 +
}}

Revision as of 19:36, 25 October 2017

float osGetCurrentSunHour()
Returns a float value of the current sun hour (24 hour clock). Hour 0 is sunrise.
Threat Level This function does not do a threat level check
Permissions Use of this function is always allowed by default
Extra Delay 0 seconds
Example(s)
//
//osGetCurrentSunHour() example, by Tom Earth.
//
default
{
    state_entry()
    {
        llSay(0, "Current sun hour: "+(string)osGetCurrentSunHour());
    }
}


Personal tools
General
About This Wiki