Author Topic: is there a generator.DestroyCrate API function in VoidExpanse?  (Read 1552 times)

ninekorn

  • Full Member
  • ***
  • Posts: 231
    • View Profile
is there a generator.DestroyCrate API function in VoidExpanse?
« on: February 23, 2019, 06:09:50 pm »
Hi,

is there a generator.DestroyCrate API function in VoidExpanse? I searched all scripts with NotePad++ and didnt find anything. The API function list in the wiki page doesnt show anything either for crates.

thank you,
nine

ai_enabled

  • AtomicTorch Founder
  • Hero Member
  • *****
  • Posts: 2018
    • View Profile
Re: is there a generator.DestroyCrate API function in VoidExpanse?
« Reply #1 on: February 24, 2019, 05:31:25 am »
Hello!

It seems the API naming scheme is CreateSomething(...) and RemoveSomething(id). So I would suggest trying
RemoveContainer(id) as there is AddContainer(...) function. Also, RemoveSpaceObject(id) might work.

Please let me know if it doesn't work - I will check the source code for API.

Regards!

ninekorn

  • Full Member
  • ***
  • Posts: 231
    • View Profile
Re: is there a generator.DestroyCrate API function in VoidExpanse?
« Reply #2 on: February 24, 2019, 09:49:47 pm »
I tried RemoveContainer or RemoveCrate and even RemoveSpaceObject but they don't work... BUT, i was trying with instanced containers and it doesn't work with them.

On another note, it's sad that I cannot add any contents to an "instanced" container. They would help performance a lot by just swapping them with normal containers. Still, I'm not even at a point where I am stress testing anything anyway ;)

nothing urgent. just to let you guys know.
« Last Edit: February 24, 2019, 11:23:18 pm by ninekorn »