We are now going to bind a key to open up the pause menu, and only allow this to happen when the player is not in battle (in other words, the player is out in the field). Since we already have a FieldPlayer set up from the previous chapter, we can easily create actions within our FieldPlayer Blueprint class that will control our pause menu. To start, navigate to Blueprints | Open Blueprint Class… | FieldPlayer:
At this point, we are going to want to have the pause screen pop up when the player presses a key; in this case, we will use P for pause. To do this, we will first need to create a key event that will fire off a set of actions of our choice after a specific key is pressed. To start this key event, right-click on your Event Graph, which will open up all actions that can be associated with this Blueprint, and then navigate to Input | KeyEvents | P:
Once done, this will create a key event for the press and release of P. You will notice that this event has pressed and released...