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

Determining whether the inventory screen is on or off

We will now set the inventoryScreen variable in its proper place. The best place to put this is when the inventory menu pops up. So, go to Pause_Inventory by navigating to Content | Blueprints | UI. In Pause_Inventory, locate the Event Construct in the Event Graph (if an Event Construct does not exist yet, create one), and from here, get every actor from the Field Player class by creating Get All Actors of Class, which is located under Utilities in the Actions menu:

Determining whether the inventory screen is on or off

Under Actor Class in the Get All Actors Of Class function, change the actor to Field Player:

From the Out Actors pin, in the Get All ...

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