Alright, so the premise as stated in title is pretty straight forward, and I have done a good job on getting everything done.. problem is, and why I am posting here, is the fact that this does NOT act as a turret until you destroy it and repair it a second time.. taking a lot of time and practicallity out of this.
Now I may just be overlooking something, so here is my coding for the armed building... nothing is wrong with the dispenser, and as expected, dropping one of these makes a permanent addition to the map, to be repaired to create a turret.