Trying to increment and decrement a variable from another .cpp file, and it gave me an error about nonstatic variable members, so i changed it to static and now i’m getting this error.
Pool on arguments of overlap, it gives you actor that triggered the event (Other), you just need to check if its your character with IsA function, cast and call from other
As mentioned above if you want some global parameter you’d better use variable in GameMode or even create your game singleton class if you want even more global thing independent from game modes.
You can always get those variables then using Kismet:
That MyCharacter in my example was just a random variable name which points to your character. You can get it by different ways: you can define public variable of type ADungeonExplorerCharacter* in your class that uses Keys and set it from your PC or GameMode or you can set a global variable in GameMode or singleton class (and get it by using method above).