Jump to content

GameEvent for Flight Reverted & Quick Load?


Recommended Posts

Maybe I'm just really missing it, but I can't seem to find an event that my addon can subscribe to that will notify me that the flight was reverted to either launch or VAB.    Does anyone know what the easiest way is to know that the player reverted their mission.  And for that matter, how about quick-loaded?

Sorry if this is a dumb question, I've just been struggling to find an answer on this.

Thanks!

Link to post
Share on other sites

Out of curiosity, why those particular types of scene loads?

Probably, you want "GameEvents.onGameSceneSwitchRequested", and then add some checks to see if the game time went backwards (I believe that one fires before a scene change so you'll be saving current time and checking the saved value against current time on initialisation)

Edited by Crzyrndm
Link to post
Share on other sites
11 hours ago, Crzyrndm said:

Out of curiosity, why those particular types of scene loads?

Probably, you want "GameEvents.onGameSceneSwitchRequested", and then add some checks to see if the game time went backwards (I believe that one fires before a scene change so you'll be saving current time and checking the saved value against current time on initialisation)

So I think I may be thinking about it wrong.  I am trying to learn how data persistence works, and I think where I am going wrong is not hooking into the save and load scenario mechanism correctly such that the ConfigNodes overwrite "unofficial data" since the player reverted.  Thank you for the suggestion though, that does sound like it would work. 

Link to post
Share on other sites
This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...