llReplaceEnvironment
function ll.ReplaceEnvironment(position: vector, environment: string, track_no: number, day_length: number, day_offset: number): numberReplaces the environment for a parcel or region.
Parameters
-
position(vector) - Location of parcel to change. Use <-1, -1, -1> for entire region.
-
environment(string) - Name of inventory item, or UUID of environment resource to apply. Use NULL_KEY or empty string to remove environment.
-
track_no(number) - Elevation zone of where to apply environment. Use -1 for all.
-
day_length(number) - Length of day cycle for this parcel or region. -1 to leave unchanged.
-
day_offset(number) - Offset from GMT for the day cycle on this parcel or region. -1 to leave unchanged.
Examples
Section titled “Examples”Add example usage here showing SLua/Luau syntax with ll.ReplaceEnvironment().
Add additional notes, caveats, or tips specific to using this function in SLua/Luau.
See Also
Section titled “See Also”- Related functions can be linked here
- LSL equivalent: llReplaceEnvironment