Getting the name of Systems?

Started by ninekorn, July 18, 2017, 11:05:25 PM

ninekorn

Hi,

How can I get the name of a system. While they are generated with "var id = generator.AddSystem(0, 0, "SystemName", 123)" they dont seem to be tags so is there a function in the API that is available for us to use?

Ive searched the Wiki API and couldnt find anything.

Thank you.
nine

ninekorn

found it.

var systemInfo = generator.GetSystemByID(arrayOfSystemID);

gives all system info. then access it with systemInfo.name

nine

ai_enabled