— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
This is an old revision of the document!
Changes…
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: All entities in the “torches” group will have the color of their light change to red over a duration of one second.
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.