Only Cold Element

  • xJqtin
    11th Jan 2021 Member 0 Permalink

    This script adds only 1 element to tpt. OCOT. It is only Cold. It can't get hot!


    SCRIPT:

    tpt.log("The script has been loaded, Made by xJqtin_!")
    local element1 = elements.allocate("xJqtin", "OCOT")
    elements.element(element1, elements.element(elements.DEFAULT_PT_DMND))
    elements.property(element1, "Name", "OCOT")
    elements.property(element1, "Description", "This element is only COLD! You cant heat it!")
    elements.property(element1, "Colour", a0c0ff)
    elements.property(element1, "Diffusion", 0)
    elements.property(element1, "MenuSection", elem.SC_SPECIAL)
    elements.property(element1, "MenuVisible", 1)
    elements.property(element1, "HeatConduct", 50)

    OCOTUpdate = function(i, x, y, s, n)
    sim.partProperty(i, "temp", -275)
    end

    tpt.element_func(OCOTUpdate, element1)