Using Blueprint Events to Pick Up Objects

 08 January 2025

I spent at least half an hour yesterday trying to import a bottle shape from Fab and then importing it into my project. But at least I finally managed to do it, and I've written instructions for myself on how to do it again.




So I now have a bottle in my game. (It's currently the wrong size, but I can change that.):




Now I need to find out how to actually pick up the object...

-----

...By watching the Gorka Games tutorial "How to Make a Simple Pick Up System in Unreal Engine 5 - Beginner Tutorial", I was able to follow along with the tutorial and eventually got it to work (on the second attempt).

I learned how to create a 'collision box' around an asset on the screen (e.g. a bottle in this case), so that when the character comes within range of that box, specific actions can be triggered (like enabling the character to pick up the asset).



Here is a screenshot now showing a bottle and a big white pill on the ground (highlighted in green). 


If the character gets within range to pick them up, the player can press 'E' on the keyboard, and the object disappears from the ground and a message appears on the screen saying "Item picked up".

SUCCESS!

---

Overall this has been a great day. Giant thanks to the stand-in teacher, Kim, for helping out today and pointing me in the right direction when I had no clue how to achieve things (like picking up objects). 



Comments

Popular posts from this blog

Creating A Door And Also Adding Foliage Using CubeGrid Tool in UE5

Using Sockets in UE5 to Allow a Character to Hold Objects

Games Development Level 2 Project