I did everything everyone said, and it still didnt work (I have hyper trigs BTW).
So i did this just to try it out and it worked. Its really wierd.
These are trigs.
Condition:
Command(CurrentPlayer, AtLeast, 1, Missile Turret);
Action:
MoveLocation(tankp1, Missile Turret, CurrentPlayer, Anywhere);
RemoveUnitAtLocation(1, Missile Turret, CurrentPlayer, tankp1);
SetSwitch(Switch 1, Set);
PreserveTrigger();
Comment("settankp1");
---
Condition:
Command(CurrentPlayer, AtLeast, 1, Missile Turret);
Switch(switch 1, set);
Action:
MoveUnit(All, SCV, CurrentPlayer, Anywhere, scv);
CreateUnit(1, Mortar Tower, tankp1, CurrentPlayer);
MoveUnit(All, AnyUnit, CurrentPlayer, scv, tankp1);
SetSwitch(Switch 1, Clear);
PreserveTrigger();
Comment("maketankp1");
---
For some reason other thing didnt work then i did it the stupid person's way and it worked