This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
set_entity_light_color [2017/08/09 08:39] – justin | set_entity_light_color [2020/05/04 09:33] – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | 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 |
+ | ====Signature: | ||
<code python> | <code python> | ||
set_entity_light_color(entity, | set_entity_light_color(entity, | ||
Line 9: | Line 10: | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
- | |entity|Entity that will have its light color changed.|[[String]]|Yes| | + | |entity|[[Entity]] that will have its light [[color]] changed.|[[Entity]]|Yes| |
- | |color|New color for the light.|[[Color]]|Yes| | + | |color|New |
- | |duration|Duration of the change | + | |duration|Fade duration |
+ | |||
+ | <WRAP center round info 100%> | ||
+ | If you'd like to instantly toggle the [[entity|entity' | ||
+ | </ | ||
====Example: | ====Example: | ||
- | < | + | < |
set_entity_light_color(self, | set_entity_light_color(self, | ||
</ | </ | ||
- | // | + | // |
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
Line 30: | Line 35: | ||
<WRAP half column> | <WRAP half column> | ||
- | ====Visual Demo: | + | ====Visual Demo:==== |
{{: | {{: | ||
</ | </ |