OsSetRegionSunSettings
From OpenSimulator
(Difference between revisions)
Line 2: | Line 2: | ||
'''''Example'': ''' | '''''Example'': ''' | ||
− | + | default | |
− | + | { | |
− | { | + | |
− | + | ||
state_entry( ) | state_entry( ) | ||
− | |||
{ | { | ||
− | |||
osSetRegionSunSettings( FALSE, TRUE, 12.0 ); | osSetRegionSunSettings( FALSE, TRUE, 12.0 ); | ||
− | |||
//Sets the region/ terrain-tab to non-estate, fixed-sun and at dusk settings. | //Sets the region/ terrain-tab to non-estate, fixed-sun and at dusk settings. | ||
+ | } | ||
+ | } | ||
+ | |||
− | |||
− | + | [[Category:OSSL]] |
Revision as of 01:44, 23 November 2010
Function Syntax: osSetRegionSunSettings(bool useEstateSun, bool sunFixed, double sunHour);
Returns: NULL
Example:
default { state_entry( ) { osSetRegionSunSettings( FALSE, TRUE, 12.0 ); //Sets the region/ terrain-tab to non-estate, fixed-sun and at dusk settings. } }