O'Reilly logo

Building an RPG with Unreal 4.x by Alan R. Stagner, Steve Santello

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Displaying stats

Now, we will need to pick a good spot to cast RPGGameInstance. It would be best to cast RPGGameInstance after the pause menu has been created, so link the out pin of the Set Show MouseCursor node to the in pin of the Cast To RPGGameInstance. Then, link the Return Value of the Create Pause_Main Widget to the Target of Set Character Target. When you are finished, your EventGraph under FieldPlayer will look like this:

Displaying stats

When you are finished, you will see that the HP of the soldier is displayed correctly as the current HP:

Displaying stats

You can now

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required