GetSurfaceMat


Returns the material of a surface. Returns strange negative numbers when the surface's mat is dflt.mat. Syntax:

mat=GetSurfaceMat(surface);