OsGetCurrentSunHour: Difference between revisions

From OpenSimulator
Jump to navigationJump to search
imported>Fritigern
No edit summary
imported>Kcozens
m Added permissions and delay information
Line 1: Line 1:
{{osslfunc
{{osslfunc
|threat_level=None
|threat_level=ignored
|permissions=true
|delay=0
|function_syntax=float osGetCurrentSunHour()
|function_syntax=float osGetCurrentSunHour()
|ossl_example=<source lang="lsl">
|ossl_example=<source lang="lsl">

Revision as of 02:36, 26 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());
    }
}