Create Interact list and table:
Create Enumeration, called ItemID_E (as a basic list of every item)
create another one, called ItemType_E
Under BP, this time create Strcuture, called ItemInfo_S
Open it, add follow variables:
Create a BP actor, called Base Structure_BP
Open Item ingo_S, again, add follow veriables:
Go to Item ID_E, add
Go to Item Type E, add
Now in Item Info S, should have a tick sign
Create a data table, choose Item Info_S as pick row structure,
Called Item Data Table_DT
(leave later to fill in the table)
Modify PlayerBase functions
Open Player Base BP, Interact function:
Add variables:
Default value for inventory size as 8, max weight capacity as 50
Create a BP interface in player folder, called Player_BPI
Add 2 functions:
Add the interface in PlayerBase BP
Open Check inventory space interface graph, tick Has Space:
Set Base interactable BP connect to item data table:
Open BaseInteractable BP, recreate the event graph as:
In construction script: