I don't know how the engine decides what to save, so I can't help you with that. If I had to write my own function I'd start by deciding what data I want to save, in what order and so on. Storing it in a file is basically just binary writing / reading. You could add some level of encryption & file integrity checking to prevent people from easily fiddling around with savegames aswell.


POTATO-MAN saves the day! - Random