Page 1 of 1

check if a save was loaded?

Posted: Fri Feb 16, 2024 1:24 am
by lockhighjumpingvenus
Is there a built in method to check if a save was loaded. I have some scripts that create data structures/buttons etc at runtime. I dont want these to be created new everytime the game runs if there is a save file being loaded. So I am wondering is there is a built in method to determine if a save file was loaded.

Re: check if a save was loaded?

Posted: Fri Feb 16, 2024 9:12 am
by Joel
Hi there,

You can check whether a save file exists or a key exists using ES3.FileExists or ES3.KeyExists. If the data exists and you're trying to load it, then you know the data was loaded after your ES3.Load call.

All the best,
Joel