Hey, I appreciate that Epic Forums is probably a more suited place for UnrealScript questions but I thought I'd try here quickly too.
I'm developing a game that has multiple levels/maps and I'm trying to keeping variable information such as Score etc throughout all of the levels. When the new map is spawning, obviously everything is resetting but I'd like a few variables to continue.
Any help would be appreciated.
Thanks
Replies
Some pointers over here: http://udn.epicgames.com/Three/DevelopmentKitGemsSaveGameStates.html
Alternatively, config files can be used for simple stuff, but the game state file would probably serve you better.
In the firts case you will have to save the data on the HDD, there is plenty of tutorial about that. For the second case, you need to use the Replication and maybe store some values in the gameinfo class : http://udn.epicgames.com/Three/GameStateReplication.html & http://udn.epicgames.com/Three/ReplicationInfos.html
(Even for a singleplayer game the UDK behave like a client/server system)
Also, the second case is much simpler to handle if you use level streaming because you don't reset the game class, while manually loading a map will reset it.