Quick question regarding accessing variables from the C++ Aplayer state in blueprints. How would one go about using the ShooterGame template and accessing variables such as these in blueprints? I’ve tried calling player state variables in the preset Pawn blueprint but can only access score it seems like. Thank you for any help regarding this.
To give you an idea what I am trying to do…I am trying to design a new HUD for the ShooterGame using UMG and need to access Kills,Score,Ammo etc variables from the C++ variables as seen on the default HUD here:
Bear in mind, all of ShooterGames’ UI is done in Slate, not UMG - so unless you change a lot of other parts of the code too you won’t be able to use UMG to build the interface.
So I went ahead and applied the code you had mentioned and I do see it is callable but now Im stuck on why I can’t connect the node from player state to target(self)…Also in order to call NumKills i have to turn off contxt sensitive in order to see it.
Also as you see the Score variable is able to connect to the player state no problems by default. And also this screenie shows the variables I can access from player state which doesn’t include the new NumKills