This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
set_group_light_color [2017/09/26 12:12] – created justin | set_group_light_color [2021/04/21 18:51] (current) – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | Changes the color of the light attached to any entities in the specified group over a duration of time (with the assumption that each entity is a light source). | + | Changes the color of the light attached to any [[entity|entities]] in the specified |
+ | ====Signature: | ||
<code python> | <code python> | ||
set_group_light_color(group_name, | set_group_light_color(group_name, | ||
Line 9: | Line 10: | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
- | |group_name|Group of entities that will have their light color changed.|[[String]]|Yes| | + | |group_name|[[groups|Group]] of [[entity|entities]] that will have their light [[color]] changed.|[[String]]|Yes| |
- | |color|New color for the light.|[[Color]]|Yes| | + | |color|New |
- | |duration|Fade duration from their current color to the new color.|[[Decimal]]|No| | + | |duration|Fade duration from their current |
<WRAP center round info 100%> | <WRAP center round info 100%> | ||
- | If you'd like to instantly toggle the entity group' | + | If you'd like to instantly toggle the [[entity]] [[groups|group' |
</ | </ | ||
====Example: | ====Example: | ||
- | < | + | < |
- | set_group_light_color(" | + | set_group_light_color(" |
</ | </ | ||
- | // | + | // |
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
Line 34: | Line 35: | ||
<WRAP half column> | <WRAP half column> | ||
- | ====Visual Demo: | + | ====Visual Demo:==== |
{{: | {{: | ||
</ | </ |