What I'm asking is could a unit be inside a unit and function independently, this would be good because then, you could have a tank or tower where the turret or weapon would function independently and be destroyed independently but the parent unit(the tank or the tower) would be able to create a new turret or weapon to replace the one it lost and if this was enabled you could have a tank with two independent turrets or independent weapons so each functions separately, for example a tank could have a turret that attacks with the cannon but it in turn contains a independent mg that shoots at a different target. You could then also have an open tower with multiple defenders, say one, two or even three archers that while limited to a maximum of three can be replaced by the parent unit(the tower).
Would this be possible to implement?