Difference between revisions of "LlSetSunDirection"

From Second Life Wiki
Jump to navigation Jump to search
Line 7: Line 7:
Requests the UserAgent's Viewer to change the phase of day/night to a specific SunPosition while sitting on the object containing the script.
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->...
llSetSunPosition recognizes 5 preset vectors that function similar to the Menu choice World->Force Sun->...
|spec
|caveats
|helpers
|related
|also
|notes=
|notes=
Useful for nightclubs and space oriented sims, which will prefer night environments.
Useful for nightclubs and space oriented sims, which will prefer night environments.
Line 17: Line 12:
|also_functions=
|also_functions=
   {{LSL DefineRow||[[llForceMouselook]]|Sets if a sitting avatar should be forced into mouselook mode upon sitting on the object.}}
   {{LSL DefineRow||[[llForceMouselook]]|Sets if a sitting avatar should be forced into mouselook mode upon sitting on the object.}}
|mode=request
|cat1=Sit


|constants=
|constants=
Line 48: Line 41:


}}
}}
|mode=request
|cat1=Sit

Revision as of 09:21, 17 November 2007

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

Signature

function void llSetSunPosition( vector position, float tau );

|mode=request |cat1=Sit