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.

BUG

The server's value takes priority on the client.

Issue Tracker: #3362

Arguments

number index

The index of the sub material. Acceptable values are from 0 to 31.

Returns

string

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