saveVars(); is a function that lets you save a group of variables to a file.
When adding a variable using the script editor interface, you type in a "save group" like this one:
![Image](http://content.screencast.com/users/darkparadox/folders/GE/media/4480c040-f50d-4953-8f9d-38f0138326ca/VariableSave1.png)
You can add as many of your variables as you want of any type to the save group.
Then, when you want to save these variable's values to a file, you use:
- Code: Select all
saveVars("filename", "SaveGroup1");
The next time you use the code
loadVars("filename", "SaveGroup1"), the variables in that group will be set to the values they had when the file was saved.
Back in my other DLC demo I made for you, I used a variable I made that was an array, and saved it using
saveVars() in different states.