OsSetRegionSunSettings: Difference between revisions

From OpenSimulator
Jump to navigationJump to search
imported>MakoBot
m some syntax modification (may be major or minor)
imported>AlanTupper
No edit summary
Line 12: Line 12:
  }
  }
</source>
</source>
|description=
|description= 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.
|
|
}}
}}

Revision as of 02:57, 18 April 2015

void osSetRegionSunSettings(integer useEstateSun, integer sunFixed, float sunHour)
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.
   }
 }