I feel like there are hundreds of topics like this but somehow im unable to find an answer. Sorry if im dumb.
Goal:
Enemy is spawned->Enemy is killed->Save information that enemy is killed which gives exp to enemy, which gives him levels which gives him more dmg, speed etc->Apply modifiers to new spawned enemy->Enemy is spawned.
I cant store those exp, lvl variables in enemy BP as enemy die so idea is:
Variables stored in “somewhere” BP
cast to “somewhere” variables before destroy actor
and cast to “somewhere” on event begin play to get this enemy lvl information back.
If im thinking right way then my problem is to find “somewhere” BP. I tried enemy controller, other actor, game instance.
All I found here is that it doesnt matter where u store variables in single player game. Yet somehow I cant find single place which will save those info and let me cast itxd. Thanks for help.