O'Reilly logo

Blueprints Visual Scripting for Unreal Engine by Brenden Sewell

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

Creating collectable objects

Restricting the player from firing their gun when they run out of ammo forces the player to be considerate of the accuracy of the shots they attempt within the game. However, limiting ammo would be unduly punishing without a way of acquiring more. We don't want ammo to naturally recharge like our stamina meter. Instead, we'll create a collectable item to allow the player to regain ammo by exploring and traversing the level.

Setting up collection logic

To create a collectable item, we will first want to start a new Blueprint that will determine the properties of each instance of that object that appears in the world. To do so, navigate to the Content Browser of the editor and open the Blueprints folder. Add a new Blueprint ...

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