Since we know that the equipment screen has Text Blocks on the right-hand side of the Weapon and Armor titles, which we created in Chapter 5, Bridging Character Statistics, we want to bind these Text Blocks to a text variable that will hold the names of the weapons and armor that we are equipping. Let's first navigate to our FieldPlayer Blueprint Event Graph, and create a text variable to hold the soldier's weapon name. We will call this text variable soldierWeapon
:
Next, navigate to the Pause_Equipment Widget Blueprint's Designer view. Select the Text Block on the right-hand side of the Weapon title, navigate to Details | Content | Text, and click on the Bind drop-down menu to select +Create Binding:
In the Event Graph for this binding, use the Get All Actors Of Class function to get all the actors of the FieldPlayer, and get the soldierWeapon
variable and link it to the Return Value pin of ReturnNode so that the Text Block is able to draw the text...