So I’ve set up a game time system based on an event tick which counts and stores seconds, minutes, hours, days, seasons and years. I figured that the best place for this would be the GameMode, as I don’t want to put it in every level blueprint, and it has to be on the server.
The problem is that I seemingly can’t cast from/to the GameMode (as it’s on the server), so how would I use this ‘game time’ information to change things like the rotation speed of the sun, or the speed that foliage grows back, etc?
The idea here is that the system would allow for me to change the speed of everything in-game with one variable (time speed). This isn’t ACTUALLY changing the time (slow motion, etc.) but changing the rate at which various events fire.
I’ve tried it in the GameMode (Can’t seem to cast)
I’ve tried it in the GameState (No event tick)
I’d like to avoid the Level Blueprint and Pawn/Controller.
Would it go in an actor? I suppose it could all go in the sky along with the sun, but then would it be running only on the client?
Any help here would be much appreciated!