Hi!
I undeerstand what Striker says.
Worker builds a gun emplacement ---> the gun emplacement has a "produce" skill that builds a gun on it.
I can only think of 1 way.
But that needs the editing of the source code:
...make a new command similar to produce and put the command morph after it. So if u use the skill "Build Gun", it will build a gun and morph to the same gun emplacement only with the difference that it has no produce skill.
So a gun (that has a rotating gun and still base) needs 3 units/xmls in the faction/unit file.
(no need for more resources)
Hope it help, and u can find someone who can edit the source code for it.
(this is for a size 1 gun and that is too small) (only 1 3 5 size guns can be used for this purpose, but maybe 2 4 will work too)
To counter that is to make the size 3 and cellmap
111
101
111
But it is to big. but maybe that is just me.