Linking to a custom function in the game mode

image

I’m trying to trigger a simple function from the game mode.

I get:
Blueprint Runtime Error: “Accessed None trying to read property GM_Ref”. Node: Add Score 10 Graph: EventGraph Function: Execute Ubergraph BP Fence Sidehalf 2 Blueprint: BP_FenceSidehalf2

What am I missing? I created the reference and everything?

Hey @mrmookieman!

Strange, can you show where you’re setting that? Also, you probably don’t need to set a game mode ref- you can use “Get Game Mode” and cast it to your game mode on the spot. This isn’t really a hit on your performance, as the game mode is always loaded. :slight_smile:
Hope this helps!

Hey @mrmookieman!

Did you figure it out?
If not, let’s get your problem handled, but if you did, let us know what the solution was so anyone else looking for an answer to a similar problem might be able to see!