Saving a game

Hi,

I was wondering is there a function inside the engine saves current level state, so that when the save is loaded it restores the exact same level state that was saved. In example I start the game, spawn some actors, save the game, close it, start the game again, load save and all spawned actors are on the level. Is there an engine function that does that, or do I have to code everything myself? (Saving actors transforms etc.)