Entity:GetSubMaterial

From Garry's Mod
Jump to: navigation, search
 Entity:GetSubMaterial( )

Description

Returns the material override for the given index.

Returns "" if no material override exists. Use Entity:GetMaterials to list it's default materials.

Arguments

number index

The index of the sub material. Starts with 0.

Returns

string

The material that overrides this index, if any.
Personal tools
Navigation