LlSetSunDirection
From Second Life Wiki
| Languages: |
English |
| LSL Portal | | | Functions | | | Events | | | Types | | | Operators | | | Constants | | | Flow Control | | | Script Library | | | Tutorials |
| | LSL Feature Request |
| The described function does not exist. This article is a feature request. |
Description
Function: llSetSunDirection( vector direction, float Delay );| REQUEST | Function ID |
| Delay | |
| Energy |
Requests the UserAgent's Viewer to change the phase of day/night to a specific Direction while sitting on the object containing the script. The transition should take the number of seconds specified by the Delay parameter. llSetSunDirection recognizes 5 preset vectors that function similar to the Menu choice World->Force Sun
A JIRA feature request will exist at VWR-####. Please go vote for it if this is important to you.
| • vector | direction | – | A vector that is the direction of the sun in the region | |
| • float | Delay | – | Seconds to allow for the change |
| Constants | Action | |
|---|---|---|
| SUNRISE | <?,?,?> | Sets the Direction to the East. |
| NOON | <?,?,?> | Sets the Direction to up. |
| SUNSET | <?,?,?> | Sets the Direction to the West. |
| MIDNIGHT | <?,?,?> | Sets the Direction to down. |
| REGION_DEFAULT | <?,?,?> | Sets the Direction to the region's current Direction. |
Notes
Useful for nightclubs and space oriented sims, which will prefer night environments. Also for items such as sailboats that tend to prefer day. This function applies to an avatar who is currently seated on a prim with a script that makes this call, much as llForceMouselook is able to implicitly get permission to change the viewer state.
See Also
Functions
| • | llGetSunDirection | – | Setting the Direction, then waiting the Delay period, and calling llGetSunDirection should return the vector specified in the original llSetSunPosition. | |
| • | llForceMouselook | – | Suggests that this type of request is reasonable to send to a User Agent/Viewer. | |
| • | llAvatarOnSitTarget | – | Call this to determine what agent would be affected by this call. |

