Search the Community
Showing results for tags 'statistic'.
Found 1 result
I know DST doesn't have ROG yet, but I want to put this part in the code for both - DS and DST. It's about to fix character freezing during winter, but not overheating during summer (more less like Wilson's beard, which won't kill him in summer ) Goes in char.lua: inst:WatchWorldState("startday", function(inst) if TheWorld.state.issummer then inst.components.temperature.inherentinsulation = 0 endend) inst:WatchWorldState("startday", function(inst) if TheWorld.state.iswinter then inst.components.temperature.inherentinsulation = 125 endend)Game starts. But when character enters the world such error appears, saying that WorldWatchState is a nil value... in everything.. DST and DS and ROG. I more less know what a nil value is, but just no idea how to fix that here :/