Conducting based on temperature.

  • PizzaPlatypus
    7th Sep 2011 Member 0 Permalink
    I'm trying to make a super conductor and I want to somehow make it conduct when it's extremely cold but not at any other heat. I need to know how to incorporate the .h property in a .c file.
  • cctvdude99
    7th Sep 2011 Member 0 Permalink
    @PizzaPlatypus
    I need to incorporate a .c property in a .h.
    :I
  • PizzaPlatypus
    7th Sep 2011 Member 0 Permalink
    =[ xD
  • me4502
    7th Sep 2011 Member 0 Permalink
    @PizzaPlatypus (View Post)
    In sprk.c

    There should be a lot of spark rules, in there, just make the conduct variable in that file 0 or 1 depending on conduct ability
  • PizzaPlatypus
    7th Sep 2011 Member 0 Permalink
    @me4502 (View Post)
    It worked but it only did it once after that it wouldn't be sparked. here is the code:
    else if (rt==PT_SPCR) {
    if (parts[i].life>=3&&parts[r>>8].temp<=73.15)<br /> {
    flood_parts(x+rx,y+ry,PT_SPRK,PT_SPCR,-1);//spark the wire
    }
    }
    It's just after the code for INST