karak Posted March 1, 2020 Share Posted March 1, 2020 Hello, I´m attempting to make character that have nightvision only when he needs it e.g. only in total darkness, but I Run into an issue. When he enter darkness screen starts flashing. I guess that is because nightvision counts as light (who would thought that). Is there any way how to make it react only to natural light? inst:ListenForEvent("enterdark", function() GetClock():SetNightVision(true) GetWorld().components.colourcubemanager:SetOverrideColourCube("images/colour_cubes/mole_vision_on_cc.tex", 2) end) inst:ListenForEvent("enterlight", function() GetClock():SetNightVision(false) GetWorld().components.colourcubemanager:SetOverrideColourCube(nil, .5) end) Link to comment 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.