Author Topic: Getting the name of Systems?  (Read 2505 times)

ninekorn

  • Full Member
  • ***
  • Posts: 231
    • View Profile
Getting the name of Systems?
« on: July 18, 2017, 11:05:25 pm »
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

  • Full Member
  • ***
  • Posts: 231
    • View Profile
Re: Getting the name of Systems?
« Reply #1 on: July 18, 2017, 11:21:04 pm »
found it.

var systemInfo = generator.GetSystemByID(arrayOfSystemID);

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

nine

ai_enabled

  • AtomicTorch Founder
  • Hero Member
  • *****
  • Posts: 2018
    • View Profile
Re: Getting the name of Systems?
« Reply #2 on: July 19, 2017, 01:11:12 am »
I'm glad you found it :-).