TheRealSFlo Posted March 9, 2016 Share Posted March 9, 2016 (edited) As the title suggests, I need to run a small bit of code once at the top of every hour while scans are taking place in the Geoscape and I'm looking for help on how to actually approach this. I don't need to actually modify anything in the Geoscape or hook into any events taking place on it. I just need to be able to run an unrelated function on a consistent in-game timescale. Thus far I've been unable to find a built-in hook for this and can't seem to figure out if UIScreenListener can handle this. Any help is appreciated! Edited March 9, 2016 by TheRealSFlo Link to comment Share on other sites More sharing options...
davidlallen Posted March 9, 2016 Share Posted March 9, 2016 Why do you want to poll instead of having some kind of interrupt when an event actually happens? If you get a notification for each event, you can subtract to find out how many hours passed, and do whatever you were trying to do. Link to comment Share on other sites More sharing options...
TheRealSFlo Posted March 9, 2016 Author Share Posted March 9, 2016 (edited) Huh, hadn't thought of that. Should be a better approach. Time to figure out how to reference the time, I suppose. Edited March 9, 2016 by TheRealSFlo Link to comment Share on other sites More sharing options...
Recommended Posts