Why doesn't LIGH work with Lua?

  • Videogamer555
    13th Jan 2012 Member 0 Permalink
    tpt.create(x-xoff,y-yoff,"ligh")
    tpt.set_property("life",100,x-xoff,y-yoff)
    tpt.set_property("tmp",100,x-xoff,y-yoff)

    is suposed to create lightning at an offset relative to the "generator" particle (I haven't coppied the part of the code that generates the coordinates for xoff and yoff to this thread for debugging as the problem isn't the initial creation of the LIGH, it definitely does make the LIGH).

    The problem is that even though I set Life and Tmpto non-zero numbers, the lightning doesn't "strike". Instead it just lasts for one frame and dissapears. Does LIGH also use Tmp2 or something? Please help.
  • mniip
    13th Jan 2012 Developer 0 Permalink
    this is hardcoded
    when you pick a lightning, and draw with a big brush it doesnt appear every frame.
    same with your code.