OsGetCurrentSunHour: Difference between revisions

From OpenSimulator
Jump to navigationJump to search
imported>Fritigern
mNo edit summary
imported>Ubit
No edit summary
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{|  width="100%" style="border: thin solid black"
{{osslfunc
| colspan="2" align="center" style=background:orange | '''{{SUBPAGENAME}}'''
|threat_level=ignored
|- valign="top"
|permissions=true
|'''Threat Level''' || None
|delay=0
 
|function_syntax=float osGetCurrentSunHour()
|- valign="top"
|ossl_example=<source lang="lsl">
|'''Function Syntax''' || <source lang="lsl">
float osGetCurrentSunHour()
</source>
|- valign="top"
|'''Example(s)||<source lang="lsl">
//
//
//osGetCurrentSunHour() example, by Tom Earth.
//osGetCurrentSunHour() example, by Tom Earth.
Line 21: Line 16:
}
}
</source>
</source>
 
|description=Returns a float value of the current region sun hour (24 hour clock).
|}
|
 
|additional_info= Since in 0.9.2 Hour 0 is midnight.
[[Category:OSSL Functions]]
}}

Latest revision as of 19:31, 3 July 2020

float osGetCurrentSunHour()
Returns a float value of the current region sun hour (24 hour clock).
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());
    }
}
Notes
Since in 0.9.2 Hour 0 is midnight.