I am new to Unreal Engine with a very basic knowledge of working with the blueprints and code together. I am having trouble with making a reference of my Blueprint Game Mode in the code.
The question is that i have a Game Mode Blueprint (BP_GameMode) and i need to make a reference of it in a class Flag something like this
The simple answer is you can not. your code does not know about BP, in fact it is compiled before it. The way to solve such a scenario is to create a base C++ class that your BP inherits from, that C++ class will then have a BlueprintImplementableEvent called IncrementScore which your BP game mode just implements.