Some thought:
- NPC WILL use the new gates, as soon as they meet the "tag" stating them as gate or warpgate however, i think you should be careful when only using a North gate for building as NPC only know one entry/exit side of the gate,
(player can use both) and that can create problems.
I experienced it when scripting the Advanced Hyperdrive mobile gate creation function,NPC can clog the gate making a real space traffic jam as if you, for example create a north gate, NPCs will always use the "south" side of it to enter it.
So if you place a north gate somewhere and a NPC coming from the north of it want to enter .... it won't enter by the north side but by the south side of it ... so it will do a trip all around the gate to enter via the south side, and if you put your linked gate from 2 very interesting sector for NPC they will surely use the gate go all around depending of ortientation and create a traffic jam due to the colision avoidance
I think you should do as i did in advanced hyperdrive and choose gate orientation to be in function of sectors that will be linked to avoid those possible space traffic jam.
It should be noted that even player owned ship will have this same behaviour, only your current ship can enter a gate via the "wrong" side. - Using TOA are nice, but i'm not sure if you can target them as jumpgate, i mean, those in the terran sectors can't be the beacon of a standard jump, and i think using TOA will prevent them as being the target of regular jump
- Why do you restrict the deployment of a gate to the playership only ? I mean this could be done OOS and ordering the command on another ship that meet the requirements, i read the code and i don't see why you are restricting the command to the playership
- Maybe this is the script intention, but there is no delay on gate creation, thus creating and linking gate can be done very quickly and can be used as tactical advantage in hostile sector due to gate not being destroyable (except by script) once created
- Linking could possibly be done on the fly, when creating one gate check free gate available and open a menu if so, to propose linking straight on