Difference between revisions of "LlSetSunDirection"

From Second Life Wiki
Jump to navigation Jump to search
Line 41: Line 41:


|also_functions=
|also_functions=
{{LSL DefineRow||[[llGetSunDirection]]|Setting the SunDirection, then waiting the Delay period,  
{{LSL DefineRow||[[llGetSunDirection]]|Setting the SunDirection, then waiting the Delay period, and calling llGetSunDirection should return the vector specified in the original llSetSunPosition.}}
and calling llGetSunDirection should return the vector specified in the original llSetSunPosition.}}
{{LSL DefineRow||[[llForceMouselook]]|Suggests that this type of request is reasonable to send to a User Agent/Viewer.}}
{{LSL DefineRow||[[llForceMouselook]]|Suggests that this type of request is reasonable to send to a User Agent/Viewer.}}
Function: vector llGetSunDirection( );


|mode=request
|mode=request

Revision as of 10:34, 17 November 2007

Emblem-important-yellow.png LSL Feature Request
The described function does not exist. This article is a feature request.

Summary

Function: llSetSunPosition( vector position, float Delay );

Requests the UserAgent's Viewer to change the phase of day/night to a specific SunPosition while sitting on the object containing the script. The transition should take the number of seconds specified by the Delay parameter. llSetSunPosition recognizes 5 preset vectors that function similar to the Menu choice World->Force Sun

• vector position 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 SunPosition to the East.
NOON <?,?,?> Sets the SunPosition to up.
SUNSET <?,?,?> Sets the SunPosition to the West.
MIDNIGHT <?,?,?> Sets the SunPosition to down.
REGION_DEFAULT <?,?,?> Sets the SunPosition to the region's current SunPosition.

Examples

Notes

Useful for nightclubs and space oriented sims, which will prefer night environments. Also for items such as sailboats that tend to prefer day..

See Also

Functions

•  llGetSunDirection Setting the SunDirection, 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.

Deep Notes

Search JIRA for related Issues

Signature

//function void llSetSunPosition( vector position, float Delay );