Compare Difficulties

Hello. Basically I’ve made a spawner with 4 difficulty variables and it must spawn an actor if spawners difficulty are equal to game difficulty. I’ve added script to level blueprint that sets difficulty to hard and I’ve placed 4 of these spawners on the level, but they’re don’t work properly and spawns object even if difficulty is not set up or not equal to game difficulty.

Spawner blueprint:

Level blueprint:

Spawner settings in game:

Save Game variables:
image

use a switch. make an enum with the 4 difficulties you want, then swap between them using a switch

1 Like

Is there any examples?

Enum is the way for “States”.

I found that I create save game object so I need to store it somehow that’s why my branches or enumeration doesn’t work. How to store it?