Author Topic: Light ID  (Read 2493 times)

Offline Gatobot

  • byte
  • *
  • Posts: 15
    • View Profile
Light ID
« on: October 06, 2013, 08:48:06 pm »
how can i get the id of a light created through the Light class, so i can removed it later from the world with the method removeLight(int number)

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Light ID
« Reply #1 on: October 06, 2013, 10:00:06 pm »
You can't, but you don't have to. Just call dispose() on the light.

Offline Gatobot

  • byte
  • *
  • Posts: 15
    • View Profile
Re: Light ID
« Reply #2 on: October 07, 2013, 05:58:24 am »
 :o sometimes i forgot to spend a few seconds and read well the docs thanks egon