Hello,
If your hud is a bp_hud, check you have set it in your game blueprint.
To have Hud infos in your character do a “Get Player Controller” / “Get Hud” / “Cast to” your Bp_Hud.
To have character infos in your Hud, do a “Get Player Character” / “Cast To” your Bp Character.
I set the bp in my game blueprint.
And the HUD and the Pawn bp are custom bps that I created to RTS camera.
I created it with this tutorial UE4 Tutorial - RTS Style Camera Movement With Edge Scrolling
and on page 10 you can see the casting.
But yes as Fen as said check out the project template I made. I did make some improvements to the edge scrolling mechanic but you should be able to look through it.
Any how in regards to the issue in your original post… You need to make sure that the “Owning Pawn” is of variable type that matches the Pawn Blueprint you want to allow edge scrolling with. If you look in the tutorial on page 10. The top left image shows the variable type I used in relation to the project which was “Pawn_EdgeScrolling” being the pawn blueprint I created. Doing it this way allows you to get and set variables found in that type of blueprint.