util.GetSurfaceIndex

From Garry's Mod
Jump to: navigation, search
 util.GetSurfaceIndex( )

Description

Returns the matching surface property index for the given surface property name.

See also util.GetSurfaceData and util.GetSurfacePropName for opposite function.

Arguments

string surfaceName

The name of the surface.

Returns

number

The surface property index, or -1 if name doesn't correspond to a valid surface property.
Personal tools
Navigation