Difference between revisions of "LlSetSunDirection"

From Second Life Wiki
Jump to navigation Jump to search
Line 1: Line 1:
{{
{{
LSL_Function
LSL_Function
|mode=request
|func=llSetSunPosition|sort=llSetSunPosition
|func=llSetSunPosition|sort=llSetSunPosition
|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=position|p1_desc=a vector that is the direction of the sun in the region
|func_desc=Requests the UserAgent's viewer to change the phase of day/night to a specific SunPosition while sitting on the object containing the script.
|p2_type=float|p2_name=tau|p2_desc=seconds to allow for the change
|func_desc=
Requests the UserAgent's Viewer to change the phase of day/night to a specific SunPosition while sitting on the object containing the script.
llSetSunPosition recognizes 5 preset vectors that function similar to the Menu choice World->Force Sun->...
|spec
|spec
|caveats
|caveats
|examples
|helpers
|helpers
|related
|related
|also
|also
|notes=Useful for nightclubs and space oriented sims, also for items such as sailboats that tend to avoid night.
|notes=
Useful for nightclubs and space oriented sims, which will prefer night environments.
Also for items such as sailboats that tend to prefer day..
|also_functions=
  {{LSL DefineRow||[[llForceMouselook]]|Sets if a sitting avatar should be forced into mouselook mode upon sitting on the object.}}
|mode=request
|cat1=Sit
 
|constants=
{{{!}} {{Prettytable}}
{{!}}-{{Hl2}}
! colspan="2" {{!}} 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.
{{!}}}
 
}}
}}

Revision as of 10:20, 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 tau );

Requests the UserAgent's Viewer to change the phase of day/night to a specific SunPosition while sitting on the object containing the script. 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 tau 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

•  llForceMouselook Sets if a sitting avatar should be forced into mouselook mode upon sitting on the object.

Deep Notes

Search JIRA for related Issues

Signature

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