User Tools

Site Tools


set_entity_light_color

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
set_entity_light_color [2017/08/11 21:14] justinset_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, color, duration) set_entity_light_color(entity, color, duration)
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's light on or off instead of changing its color, see the related [[Set Entity Light Enabled]] function.
 +</WRAP>
  
 ====Example:==== ====Example:====
set_entity_light_color.txt · Last modified: 2021/04/21 18:50 by justin