Jump to content

Recommended Posts

This is the code 

--Character Light Aura
inst:ListenForEvent("hungerdelta", function(inst) local percent = inst.components.hunger:GetPercent() if percent > 0.3
then inst.Light:Enable(true) inst.Light:SetColour(255/255, 0/255, 0/255) inst.Light:SetRadius(percent * 7) else inst.Light:Enable(false) end end)

yet the color is a pure white during night, can you help me with this?

I'm wanting to make it a neon blue color (70, 173, 212)

Link to comment
https://forums.kleientertainment.com/forums/topic/90917-color-light-coding-help/
Share on other sites

4 hours ago, AVoraciousLatia said:

This is the code 

--Character Light Aura
inst:ListenForEvent("hungerdelta", function(inst) local percent = inst.components.hunger:GetPercent() if percent > 0.3
then inst.Light:Enable(true) inst.Light:SetColour(255/255, 0/255, 0/255) inst.Light:SetRadius(percent * 7) else inst.Light:Enable(false) end end)

yet the color is a pure white during night, can you help me with this?

I'm wanting to make it a neon blue color (70, 173, 212)

The SetColour line is what you'll want to edit to change it's colors.

inst.Light:SetColour(70/255, 173/255, 212/255)

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...