AVoraciousLatia Posted May 17, 2018 Share Posted May 17, 2018 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 More sharing options...
RedHairedHero Posted May 17, 2018 Share Posted May 17, 2018 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) Link to comment https://forums.kleientertainment.com/forums/topic/90917-color-light-coding-help/#findComment-1036126 Share on other sites More sharing options...
Sicko Hog Posted May 18, 2018 Share Posted May 18, 2018 if only there was some sort of subforum you could ask this in that's specifically for don't starve together modding Link to comment https://forums.kleientertainment.com/forums/topic/90917-color-light-coding-help/#findComment-1036166 Share on other sites More sharing options...
Recommended Posts
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.