I’m currently working on a system for item containers. Trying to make things as reusable as possible. In this instance, I have a desk (interchangeable with cabinets, dressers, etc) which is placed in the level as a blueprint. In the construction script we add two child actors, which are for the drawers or cabinet doors. For those I am using an extension of my door blueprint because it has the same basic functionality and uses locks and keys and my usable item interface. Each of these drawers then adds child actors for the items they will contain (physical objects like a bottle of water). It looks great because the items roll around when the drawer is open like they would in real life.
The problem lies with the child actors. In the current engine version, you can’t access the variables of child actor from a blueprint placed in the level, so I can’t choose the settings for which items to spawn or whether a certain drawer should be locked.
So I’m manually putting them together in the level and using grouping. Not my ideal solution. I tried making it all a single blueprint, but thought this setup would play nicer as far as determining which drawer the player was interacting with and give me an easy way to have varying numbers of drawers with one blueprint.
Any ideas how i could make this work? Are you doing something similar? What was your approach? Thanks