Blueprint: Inventory Library
FindFirstAllowedSlot
-
find the first slot where the item is allowed
-
Can it called by Blueprint: YES
-
Blueprint type: Callable
Function
static void FindFirstAllowedSlot(UFGInventoryComponent* Inventory, TSubclassOf<UFGItemDescriptor> Item, KBFLFoundSomething &Found, int32 &Index);
Input | Description |
---|---|
UFGInventoryComponent* Inventory |
Inventory where we want to search for |
TSubclassOf<UFGItemDescriptor> Item |
Item what we want |
Output | Description |
---|---|
KBFLFoundSomething& Found |
Enum for we found something (for easy ise switch) |
int32& Index |
Index of the inventory slot where the Item is allowed (return -1 if slot not found) |
FindAllAllowedSlots
-
find all slots where the item is allowed
-
Can it called by Blueprint: YES
-
Blueprint type: Callable
Function
static void FindAllAllowedSlots(UFGInventoryComponent* Inventory, TSubclassOf<UFGItemDescriptor> Item, KBFLFoundSomething &Found, TArray<int32> &Index);
Input | Description |
---|---|
UFGInventoryComponent* Inventory |
Inventory where we want to search for |
TSubclassOf<UFGItemDescriptor> Item |
Item what we want |
Output | Description |
---|---|
KBFLFoundSomething& Found |
Enum for we found something (for easy ise switch) |
TArray<int32>& Index |
Array of indexes that we found (return empty array if there is no slot) |