madrum Posted August 4, 2018 Share Posted August 4, 2018 I would need this for a mod. Is there any way to get a state into papyrus that tells if the player is in the sunlight or in a shadow? The game must at least know the brightness level, for sneaking etc. Link to comment Share on other sites More sharing options...
Evangela Posted August 4, 2018 Share Posted August 4, 2018 (edited) GetLightLevel Edited August 4, 2018 by Rasikko Link to comment Share on other sites More sharing options...
foamyesque Posted August 4, 2018 Share Posted August 4, 2018 Not directly. GetLightLevel sort-of works for brightness, though it doesn't match up great with the actual visual brightness of the area, and then you'd combine it with a test to see if you're in an exterior zone between the appropriate daylight hours. Sufficiently strong non-sunlight sources of illumination might trick this so you'd need to do testing to find acceptable values to test GLL against. Link to comment Share on other sites More sharing options...
madrum Posted August 5, 2018 Author Share Posted August 5, 2018 Thanks guys! Will test this out. Link to comment Share on other sites More sharing options...
SeraphimKensai Posted August 5, 2018 Share Posted August 5, 2018 Maybe even throw in a GetIsCurrentWeather to check if it's actually sunny weather as opposed to cloud cover, rain, blizzard,or thunderstorms. Link to comment Share on other sites More sharing options...
Recommended Posts