So i basically want to execute a piece of code (resetting a static Dictionary) whenever a new game is started/loaded but before the SpawnSetup() is called.
I have tried to use MapComponent GameComponent andprefix patching LoadGame() and InitNewGame() but none of them worked the way i wanted.
Edit: patching LoadGame and InitNewGame did actually work... i just had to write the Prefix method the right way .-.
I have tried to use MapComponent GameComponent and
Edit: patching LoadGame and InitNewGame did actually work... i just had to write the Prefix method the right way .-.