randomtguy Posted September 11, 2020 Share Posted September 11, 2020 What's the most efficient way to have an integer raise and lower over time? I know I could do it with a StartTimerGameTime loop adding + 1 every in game hour or whatever, but is there a better, less event spammy way to do it? Link to comment Share on other sites More sharing options...
SKKmods Posted September 11, 2020 Share Posted September 11, 2020 The only time based triggers are real or game time timers. Running a long timer is no more (effective) overhead than an event registration. The consideration in real time systems is that it can trigger at awkward times without respecting world events like in combat or in scene which may need handling. Link to comment Share on other sites More sharing options...
SpaceMachineSixThousandOne Posted September 12, 2020 Share Posted September 12, 2020 Globals, built into the game? The globals or scripts keep up with that in save games. You know, it's persistant. Your SPAM is limited to GameMode scripts that are expected to run 1 time for every frame being rendered. So when we estimate a call every game hour, that's once every 10,800 - 43,200 frames. But testing would show if it effected other parts of the game, which could then be conditions on whatever it was. Also FO4 Creation Kit and Modders. Link to comment Share on other sites More sharing options...
Recommended Posts