setup is easy
1. place a turret base
2. place a broken turret with no base onto the base entity and give it a unique name, set 'SpawnAtStart' to No
3. place a dynamic turret onto the base, in the IfUsed field enter the unique name of the broken turret
LUA script by PartTimeCoder
I thank him very much for the help with the script.