How can I call a Blueprint function inside C++ code?

I’m using a Puzzle Template and here DefaultPawnClass is NULL