Luis95R Posted January 4, 2018 Share Posted January 4, 2018 (edited) Hi, I'm wondering if anyone knows how to detect when the season changes in the world? I've been trying to modify a mod to make it clean the world of certain prefabs every time a new season starts instead of every time period like for example like every 1 hour, 2 hours, 3 hours, etc.. I've been doing my own searching and have used the following to detect a season change, but it seems to also trigger the cleaning when a new day begins. Anyone know how to avoid that? I've tried this: inst:ListenForEvent("seasontick", Clean) As well as this: inst:WatchWorldState("seasonprogress", Clean) In case you'd like to test it out for your own, the mod I'm trying to modify for personal use on my world is this one: https://steamcommunity.com/sharedfiles/filedetails/?id=597417408 Any help would be appreciated thank you! Edited January 4, 2018 by Luis95R Link to comment https://forums.kleientertainment.com/forums/topic/86119-solved-how-to-detect-season-change/ Share on other sites More sharing options...
Aquaterion Posted January 4, 2018 Share Posted January 4, 2018 inst:WatchWorldState("season", Clean) Link to comment https://forums.kleientertainment.com/forums/topic/86119-solved-how-to-detect-season-change/#findComment-989788 Share on other sites More sharing options...
Luis95R Posted January 4, 2018 Author Share Posted January 4, 2018 5 minutes ago, Aquaterion said: inst:WatchWorldState("season", Clean) Oh my gosh I feel so dumb, for not thinking of that. Thank you so much! It works. Link to comment https://forums.kleientertainment.com/forums/topic/86119-solved-how-to-detect-season-change/#findComment-989789 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now