Iām using the timer in the sense of a programmable counter that will execute something at some future time. So while I can use the calendar to track when an event should happen, I canāt make an event happen.
Simple example that Iām seeing a lot in the faction camp code:
- You send an NPC off to go build something that takes 4 hours. He disappears off from the map, and the time you sent him off and the time you expect him back is saved in a data structure.
- 4 hours later, the NPC doesnāt suddenly reappear. Thereās no timer that can trigger a callback to execute the code that causes the NPC to return.
- An hour after that, you go talk to the camp manager. The code checks the current time from the calendar against the saved time, and gives you the option of executing the code to retrieve the NPC.
What nameless_survivor wants is the ability to set a countdown timer, have it expire, and then have the lab collapse off-screen if itās no longer in the reality bubble. We canāt do that - the best we can do is have the lab collapse as soon as it re-enters the bubble. Which is good enough 90% of the time, but a general timer infrastructure would be useful for things like smoking racks, NPC movement, bombs, and other things that I havenāt thought of.