Changes the lighting of the current map over a duration of time.
apply_lighting_preset(preset_name, duration)
Argument | Description | Type | Required |
---|---|---|---|
preset_name | Name of the lighting preset (as defined in the Map Editor). | String | Yes |
duration | Fade duration from the current lighting to the new lighting. | Number | No |
apply_lighting_preset("Night", 2);
Results: The current map's lighting will change to the “Night” preset over a duration of two seconds.
Use the Apply Lighting Preset function to give the effect that the time of day has changed or to change the atmosphere of an indoor scene.