blueprint
Add Item to Inventory (Item)
- Exposure: public
- UE Version: 5.2
This is one part of a two part code. This part should be on the item blueprint, while the other part will be on the Player blueprint. This code also requires a Blueprint interface, where you should create the function Add Item and give it an input called "NewItem". It should be a string type, single. The "item name" variable is an Enumerator reference, where I list all of the possible item names.
ctrl + v