Kanyenke Posted January 31, 2022 Share Posted January 31, 2022 Hi there! I started playing with mods not long ago, but I managed to do a couple of cool things already (creating new items, adding them to research, etc.). I'm still figuring out and "mapping" all the game decompiled source to the game itself, but I guess that's how reverse engineering works! Fortunately I had a lot of experience with Unity so kinda understand what's happening (somewhat). I'd like to add some "events" to the game - so things that happens every now and then, triggered by time or other factors - for instance spawning things. A good in-game reference would be the spawning of comets/meteors. But I haven't managed to find a good kickstart point in the decompiled code so start patching. Is there any method or class that you know that triggers periodically and brings context information that I could consume? Thanks a lot! Link to comment Share on other sites More sharing options...
Kanyenke Posted January 31, 2022 Author Share Posted January 31, 2022 Answering mylsef: the TimeOfDay class is the one that updates the game clock. From there I can call stuff. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.