RTS buildings -- how to make a container?

Hi all,
Im new to Unreal game development. I’m working on a RTS, but I stumbled upon something, that I can’t find any literature, articles or any postings about.

My RTS is a military RTS. I am trying to achieve a setup , where I can click and select a military unit (in this case a soldier), and have him run over to a house, and then get inside the house, and fortify it. And then I want the soldier to be able to fire outside at other targets from said house and to be aware of enemy units outside of the house.

this is a common element in Military RTS’s, but I cannot find how to pull this off. Anyone out there that can give me some direction or perhaps links to articles about this?

Thanks in advance…im clueless currently.

The simplest way would be to define slots within the building actor that can be used as root slots for the soldiers. You can do this with the socket editor for meshes and skeletons. (Easiest is to import the building with a skeleton, even if it’s not a “skinned” character.) When a soldier reaches a building, it can check whether there are any available slots to attach itself to, and then do that. You’ll probably want to make specific animations for the soldier to play (including rest/idle poses) when in this mode.