What to put in actor component vs Owner Actor

Zapking9224
Mon, 20 Mar 2023 22:45:56 +0000
Blueprint

Hi,
So I’m trying to make an inventory system using data tables and actor components. I think I have the inventory part working when it comes to storing stuff correctly, but I’m not sure what data I should store or functions I should create in the inventory actor component. I am also making a loot actor component which will hold the data of the loot the player is picking up and to be added to the inventory. But for example, I have most of the initializing functions and interaction code in the loot component and I’m not sure if that’s where I should store it because grabbing or retrieving certain information isn’t as fluid as I would think the system should be. I’m wondering if there are any good practices to better organize where and how I should store the information about the inventory or the loot. Whether it should be in the actor component or the owner actor itself. Any ideas or suggestions would be greatly appreciated!

4 posts - 2 participants