After researching everything regarding actors and components, I’m not sure how to approach this problem.
I have a project where I frequently have groups of actors that collectively make up an entity, and in noob terms, I’d like to be able to call methods on such entities and duplicate them to my heart’s desire.
For example, I have a square room entity with four doors on each of the four sides, colored lights above each door, and more. I’d like to make many copies of this square room, and on each room, I’d like to be able to perform actions like OpenNorthDoor() or SetWestLightColor().
What is the proper way to achieve this abstraction?
My only two ideas are:
- Use folders or actor groups to group actors together in the outliner, and cram all logic into the level script actor. This sounds like it would be a nightmare.
- Use folders or actor groups to group actors together in the outliner, and for each group, add a dummy actor that references the other actors in the group e.g. the doors and exposes the desired functions e.g OpenNorthDoor()—basically a mini level script actor that’s instanced to a folder of the actors it’s in charge of. This would make sense, but actors have locations and are spawnable, which makes me think this would be a hack.