Jump to content

[LE] Does RegisterForSingleUpdate persist through game load?


Recommended Posts

As the title says, i'd like to know whether RegisterForSingleUpdate function runs through game load. So let's say, if i call the function with the float parameter 300 seconds, then i save and exit the game, then I'm going to reload the save again, will the function still run and continue the remaining float duration?
Link to comment
Share on other sites

The 'Register' function will put a "Mark" on the game's timeline function, which it's stored in the save file when

a save is made, so yes.


This is what makes all 'Register' functions so dangerous for the save file when a mod is uninstalled, if the function does not ends and the mod is removed the "Mark" will remain in the save file, as a consequence resizing the chances of corrupting the save file, especially when a lot of those "Orphan Marks" live in the save file.


I hope it helps.

Link to comment
Share on other sites

What maxarturo said is true, however, the single registrations are much more save file friendly after a mod has been removed than the non-single variety. With single registrations the "mark" will remain and attempt to run at the designated time where it will fail and cease to exist. The non-single registrations, on the other hand, will continue to hit new marks and continue to fail and continue to leave a foot print in the save file.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...