OsSetRegionSunSettings

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
'''Function Syntax:''' osSetRegionSunSettings(bool useEstateSun, bool sunFixed, double sunHour);<br>'''Returns:''' NULL
+
{{osslfunc
 
+
|threat_level=Nuisance
'''''Example'':&nbsp;'''
+
|function_syntax= osSetRegionSunSettings(integer useEstateSun, integer sunFixed, float sunHour)
 +
|ossl_example=<source lang="lsl">
 
  default
 
  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.
    }
+
  }
 
  }
 
  }
 +
</source>
 +
|description= This does nothing on 0.9.2.<br>
 +
Sets the Sun parameters for the Region. 
  
 +
The useEstateSun flag enables/disables synchronization with the Sun settings for the Estate.
 +
 
 +
sunFixed determines whether the Sun will remain fixed in place or proceed through its cycle.
  
 
+
sunHour determines the time of day the Sun will be set to.
[[Category:OSSL]]
+
|
 +
}}

Latest revision as of 10:47, 5 October 2020

osSetRegionSunSettings(integer useEstateSun, integer sunFixed, float sunHour)
This does nothing on 0.9.2.

Sets the Sun parameters for the Region.

The useEstateSun flag enables/disables synchronization with the Sun settings for the Estate.

sunFixed determines whether the Sun will remain fixed in place or proceed through its cycle.

sunHour determines the time of day the Sun will be set to.

Threat Level Nuisance
Permissions No permissions specified
Extra Delay No function delay specified
Example(s)
default
 {
   state_entry( )
   {
           osSetRegionSunSettings( FALSE, TRUE, 12.0 );
               //Sets the region/ terrain-tab to non-estate, fixed-sun and at dusk settings.
   }
 }
Personal tools
General
About This Wiki