This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
set_entity_light_color [2017/08/11 21:14] – justin | set_entity_light_color [2018/03/16 09:48] – justin | ||
---|---|---|---|
Line 4: | Line 4: | ||
Changes the color of the light attached to the specified entity over a duration of time (with the assumption that the entity is a light source). | Changes the color of the light attached to the specified entity over a duration of time (with the assumption that the entity is a light source). | ||
+ | ====Signature: | ||
<code python> | <code python> | ||
set_entity_light_color(entity, | set_entity_light_color(entity, | ||
Line 12: | Line 13: | ||
|color|New color for the light.|[[Color]]|Yes| | |color|New color for the light.|[[Color]]|Yes| | ||
|duration|Fade duration from its current color to the new color.|[[Decimal]]|No| | |duration|Fade duration from its current color to the new color.|[[Decimal]]|No| | ||
+ | |||
+ | <WRAP center round info 100%> | ||
+ | If you'd like to instantly toggle the entity' | ||
+ | </ | ||
====Example: | ====Example: |