Only Cold Liquid

  • xJqtin_
    11th January Member 0 Permalink

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

    REMINDER: If you wanna change the Default element?
    Change this: elements.element(element1, elements.element(elements.DEFAULT_PT_MERC))

    You see MERC? You can change that to any element you want.

    SCRIPT:

    tpt.log("The script has been loaded, Made by xJqtin_!")

    local element1 = elements.allocate("xJqtin1", "OCLT")
    elements.element(element1, elements.element(elements.DEFAULT_PT_MERC))
    elements.property(element1, "Name", "OCLT")
    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.LQ_LIQUID)
    elements.property(element1, "MenuVisible", 1)
    elements.property(element1, "HeatConduct", 50)

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

    tpt.element_func(OCLTUpdate, element1)

  • TuDoR2007
    12th January Member 0 Permalink

    shouldn't it be OCLD tho

  • xJqtin_
    12th January Member 0 Permalink

    If ya wanna change the name of the element "CHANGE ALL THE WORDS OF OCLT"

    So:

    elements.property(element1, "Name", "OCLT")
    local element1 = elements.allocate("xJqtin1", "OCLT")
    tpt.element_func(OCLTUpdate, element1)
    OCLTUpdate = function(i, x, y, s, n)

    Change that to the name you want. <----

  • TuDoR2007
    13th January Member 0 Permalink

    i know i'm just asking why is there a T at the end