This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
apply_lighting_preset [2021/12/13 15:25] – justin | apply_lighting_preset [2021/12/13 16:04] (current) – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | Changes... | + | Changes |
====Signature: | ====Signature: | ||
Line 12: | Line 12: | ||
|preset_name|Name of the lighting preset (as defined in the [[Map Editor]]).|[[String]]|Yes| | |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| | |duration|Fade duration from the current lighting to the new lighting.|[[Number]]|No| | ||
- | |||
- | <WRAP center round info 100%> | ||
- | If you'd like to instantly toggle the [[entity]] [[groups|group' | ||
- | </ | ||
====Example: | ====Example: | ||
Line 21: | Line 17: | ||
apply_lighting_preset(" | apply_lighting_preset(" | ||
</ | </ | ||
- | // | + | // |
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | Use the **Set Group Light Color** function to dim/ | + | Use the **Apply Lighting Preset** function to give the effect that the time of day has changed |
</ | </ | ||
Line 30: | Line 26: | ||
<WRAP half column> | <WRAP half column> | ||
====Editor Node:==== | ====Editor Node:==== | ||
- | {{:wiki: | + | {{: |
</ | </ | ||
<WRAP half column> | <WRAP half column> | ||
====Visual Demo:==== | ====Visual Demo:==== | ||
- | {{:wiki: | + | {{: |
</ | </ | ||
</ | </ | ||
~~NOTOC~~ | ~~NOTOC~~ |