Difference between revisions of "LlSetSunDirection"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 2: Line 2:
LSL_Function
LSL_Function
|func=llSetSunDirection|sort=llSetSunDirection
|func=llSetSunDirection|sort=llSetSunDirection
|p1_type=vector|p1_name=position|p1_desc=A vector that is the direction of the sun in the region
|p1_type=vector|p1_name=direction|p1_desc=A vector that is the direction of the sun in the region
|p2_type=float|p2_name=Delay|p2_desc=Seconds to allow for the change
|p2_type=float|p2_name=Delay|p2_desc=Seconds to allow for the change
|func_desc=
|func_desc=

Revision as of 15:34, 27 December 2007

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

Summary

Function: llSetSunDirection( vector direction, float Delay );

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

• 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.

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 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.

Deep Notes

Search JIRA for related Issues

Signature

//function void llSetSunDirection( vector direction, float Delay );