pretty much newbie here. I am just playing around with this FPS template project, I was able to create items, pickup system and created basic structure to store in array as inventory.
What I want to do now, and in C++ for later possibility of modding, is load all available items into array consisting of
int - itemId
FString - itemName
UstaticMeshComponent - itemMesh
Therefore I will have list of existing items available from anywhere, so I can get it’s name and model from more or less anywhere. Right now in one case from player’s inventory to list items player owns and it’s names, and for random pickups where i just generate number and set static mesh and item name from this list.
Is there some way to store data like this globally? With ability to fill the array from C++?
I will be thankful for any insight,