blueprint
Add to Inventory (Player)
- Exposure: public
- UE Version: 5.6
This is one part of a two part code. This part should be on the Player blueprint, while the other part will be on the item 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 "Inventory" variable is an array of strings.
ctrl + v