We're thinking of adding a type of teleporter in our mod that isn't ground-based, but we're wondering how we could go about controlling the teleporter link so that it doesn't link with ground teleporters. Does anyone know if this is even possible at the moment?
This may actually work. I know for a fact that you can change what units are able to use the teleporter as I did that myself in my Orbital Teleporter mod (on accident). The trouble I had was that I wanted an orbital teleporter, but as soon as I changed which units could build it, it changed what units could build it. Here's an example of the JSON code I'm refering to: Code: "unit_types": [ "UNITTYPE_Structure", "UNITTYPE_Teleporter", "UNITTYPE_CmdBuild", "UNITTYPE_FabBuild", "UNITTYPE_FabAdvBuild", "UNITTYPE_CombatFabAdvBuild", "UNITTYPE_CombatFabBuild", "UNITTYPE_FabOrbBuild" ], The above code not only changes who can build it, but what troops can use it. This leads me to back to your idea. When I changed some of the JSON instances of word Teleporter to Supergate, my orbital teleporter would no longer link to standard teleporters. I don't know which one would do the trick; however, if you made an orbital teleporter and call it something else, updating reference in the JSON file, I believe it's more than possible to make a whole new teleporter that doesn't link to ground based ones. Again, I'm not sure, but here's a snippet of the JSON i think might have an effect: Code: "description": "!LOC(units:teleporter_teleports_units_from_one_to_another.message):Teleporter: Teleports units from one to another.", "display_name": "!LOC(units:teleporter.message):Teleporter", "unit_name": "!LOC(units:teleporter.message):Teleporter", "useable": { "range": 30, "type": "teleporter" }
Hmm, I can't seem to get it working in the way you've indicated. It still links with normal teleporters and it only allows ground troops through...