Set GameMode variables independently for each level

@Rev0verDrive

OMG, I think i did it :smiley:

Ok, so I started with an actor bp… cast to gm and set the variables like so:

This worked really nice and I could see why it’s good for testing, but then I really wanted to go the Data Table route since it sounded more elegant…

I created a Struct:

Then used the struct to create a data table:

Then inside my GM bp, from the “Event BeginPlay” I set the variables:

This works beautifully. I love it!

Couple of questions…

  1. Is this how it should be done?
  2. My only concerns is "Get Current LevelName == Row Name (string to name conversion) is this always gonna work ok??? I couldn’t think of another way to get that info of the current level to match the row from the data table.

As I said, it works really nice, but wanted to run it by you guys. If you see any issues please let me know.
Otherwise, fantastic help. Thank you so much, again!