guestion

  • jenn4
    6th Sep 2011 Member 0 Permalink
    how to make some element default life 0 and then it increase to 500 if there is some other element next to it.
  • PizzaPlatypus
    6th Sep 2011 Member 0 Permalink
    say if nothing is there 0 life
    (use regular particle check and say none)
    but if something is there 500 life
  • jenn4
    6th Sep 2011 Member 0 Permalink
    500 if there is fire. If there is something else 0
  • lolzy
    6th Sep 2011 Former Staff 0 Permalink
    This is an "UTT" warning. Please do not repeat the offence. If another mod over-rules my decision, I shall not be happy D:
  • jenn4
    6th Sep 2011 Member 0 Permalink
    @lolzy
    What do you mean?
  • jenn4
    6th Sep 2011 Member 0 Permalink
    Can someone help me. I need code what makes burn(element) life 1 until it hits oxgn(element) then it cames to 500. please help
  • cctvdude99
    6th Sep 2011 Member 0 Permalink
    UTT, undescriptive thread title.

    If there is oxygen next to it, simple code:


    if ((r&0xFF)==PT_NAME)
          parts[i].life = 500;


    Might work, I'm not sure, but it worked for me when I made N2O increase the life of the fire slightly in my mod.

    If the element moves away again, the life will drop by 1 each frame, if the element touches it again, it gets set to 500, etc.
  • jenn4
    6th Sep 2011 Member 0 Permalink
    @lolzy (View Post)
    sorry. I do better name next time.
    @cctvdude99 (View Post)
    I try. I'm making burn element to realisticaller(sorry) burn


    Do you know how to make it like id there is not OXGN it life would go back to 0?
  • cctvdude99
    6th Sep 2011 Member 0 Permalink
    Hm.
    You could, easily. C'mon, use that brain. :)

    if ((r&0xFF) != PT_NAME)
          parts[i].life = 0;
  • jenn4
    6th Sep 2011 Member 0 Permalink
    @cctvdude99 (View Post)
    If there is not oxgn it turn back to 0 with this code I don't think so.

    How to make default life to burn(1)