Documentation: LightComponent

From Noita Wiki
Jump to navigation Jump to search
Name Type Initial Value Example Range Description
Members
update_properties bool false turn this on if you expect this to function like the other components
radius float 0 [0, 3000] The radius of the light in world pixels.
r unsigned int 255 [0, 255] Color red 0-255
g unsigned int 178 [0, 255] Color green 0-255
b unsigned int 118 [0, 255] Color blue 0-255
offset_x float 0 [-3000, 3000] Offset from the center of entity.
offset_y float 0 [-3000, 3000] Offset from the center of entity.
fade_out_time float 0 [0, 5] time in seconds, if not 0, this is how long this takes to die, when the component is destroyed
blinking_freq float 1 if less than 1, will blink randomly when rand() < blinking_freq
Privates
mAlpha float 1
mSprite as::Sprite*