NBLE gas in lua

  • Hecker
    7th Nov 2021 Member 0 Permalink

    Is there a way to import the functions on nble into lua 

    the script i have is

     

    local function NBLERUpdate(i, x, y, s, nt)
        if math.random(1, 200) == 1 then
        for r in sim.neighbors(x,y,1,1) do
            if (sim.partProperty(r, "type") == elem.DEFAULT_PT_SPRK) and (math.random(0,10) < 5) then
                tpt.set_property("type", "PLSM", i)
            end
        end
    end
    end
     
    the random part reduces lag.
    I also have
    elem.property(NBLER, "Properties", elem.TYPE_GAS+elem.PROP_LIFE_DEC+elem.PROP_CONDUCTS)
    is it possible