which sets the main spawn point for that building to true, but if user builds another, and decides to set that one to the main spawn location, it will set that to true also, and there cant be 2 spawn pos.
You should have a list of the war factories already created, so that when you’ll set a new spawn point, you will set to all the others that they are no more the main spawn point. I think that this kind of code should be placed in a sort of GameManager and not in the WarFactory script itself.