Giving elements starting values?

  • megamageiii
    15th Sep 2014 Member 0 Permalink

    I am making a mod, and I wanted to make an element that starts with a life of 500 (similar to PHOT). However, I can't seem to figure out how. I have looked through the wiki for a while now, and can't find a way. Any help would be greatly appreciated.

  • jacob1
    15th Sep 2014 Developer 0 Permalink
    Starting values aren't possible to directly set with Lua at the moment. There is a workaround though. Use .tmp to check for whether the starting values have been set yet, so if .tmp is 0 then set .life to 500 and .tmp to 1.
  • megamageiii
    15th Sep 2014 Member 0 Permalink

    Ok, thanks.

  • boxmein
    15th Sep 2014 Former Staff 0 Permalink
    I feel like a pull-request that lets people define a 'starting state' for the particle...
  • jacob1
    15th Sep 2014 Developer 0 Permalink
  • boxmein
    16th Sep 2014 Former Staff 0 Permalink
    @jacob1 (View Post)
    Obviously I've been keeping up with the issues lately.... :P