Getting element "Properties"?

  • LiquidCaesium
    11th Dec 2012 Member 0 Permalink

    I'm trying to find out if a material has some features. I'm trying to get TYPE_PART and TYPE_SOLID, but that would also work with others.

     

    What would you guys use to get those?

     

    EDIT:

    Nevermind, just found out elements.property, here's it for others:

     

    local temp1 = elements.property(elements.DEFAULT_PT_WOOD, "Properties")

    if bit.band(temp1, 0x01) ~= 0 then

    --Goes here if has TYPE_PART

    end