New Feature: Event scheduling tied to the day/night system
In the next update I'm introducing an event scheduling feature that's connected to the in-game time system! Using this option, you'll be able to configure scripts to trigger at certain times of day. Events can be set up on a per map basis and will be useful for things like turning lights on and off, changing the behaviors of NPCs (e.g. to have them go inside in the evening), or spawning enemies at a specific time each night.
On a related note, I've also updated the day/night system so that the global.time
variable will always be available for checking the current in-game time. Previously the day/night cycle needed to be enabled, with day and night lighting presets also assigned. With this update, you can now change how long your game's day is in seconds, and the global.time
variable will contain a value independent from any visual lighting being set up.
I'm excited to see how everyone uses this feature in their project! If you do plan on using this, let me know below what sort of events or changes will be triggered as each day progresses in your game.
Target Release: v1.1