how to make elements conductive

  • plutoniumuraniun
    3rd Jan 2021 Member 0 Permalink

    dose anyone know how to make elements conductive

  • RegisteredUser
    3rd Jan 2021 Member 0 Permalink

    same question

  • CactusHamster
    12th Jan 2021 Member 0 Permalink

    There are two ways I know to do this. First is the way on the wiki, using the Property value to add the properties PROP_LIFE_DEC and PROP_CONDUCTS to the element. I haven't had any luck with this so far. The other way is to base the element off of an already conductive element, like TTAN or METL.

     

    First method: ```elem.property(element, "Properties", TYPE_SOLID, PROP_LIFE_DEC, PROP_CONDUCTS, PROP_HOT_GLOW, PROP_SPARKSETTLE)```

     

    Second method: ```elem.element(element, elem.element(elem.DEFAULT_PT_GOLD))```

    Edited once by CactusHamster. Last: 12th Jan 2021
  • CCl2F2
    12th Jan 2021 Moderator 0 Permalink

    Electric conductive or heat conducitve?

  • plutoniumuraniun
    19th Jan 2021 Member 0 Permalink

    cactusHammster i will try it

    first one dose not work

    second one dose work but changes the propities

    Edited 2 times by plutoniumuraniun. Last: 19th Jan 2021
  • CactusHamster
    19th Jan 2021 Member 0 Permalink

    @plutoniumuraniun (View Post)

     If you change all the properties back, it should work. I have a "template" I made for my own scripts if you would like to use it.

    https://drive.google.com/uc?id=1SF9ZLaMpeF10z-nGXzj9vWK_4ZLLvSIe

  • jacob1
    19th Jan 2021 Developer 0 Permalink
    @CactusHamster (View Post)
    The problem is incorrect api usage, elem.property only takes 3 arguments, not a list of properties to add. Also, the constants exist in the elem. api and need to be fetched from there. They aren't globals.

    Try adding them together instead
    elem.property(element, "Properties", elem.TYPE_SOLID + elem.PROP_LIFE_DEC + elem.PROP_CONDUCTS + elem.PROP_HOT_GLOW + elem.PROP_SPARKSETTLE)
    Edited 2 times by jacob1. Last: 19th Jan 2021
  • plutoniumuraniun
    21st Jan 2021 Member 0 Permalink

    OMG IT WORKS!!! THANKS JACOB