Garry's Mod Wiki

Entity:GetSubMaterial

string Entity:GetSubMaterial( number index )

Description

Returns the material override for the given index.

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

The server's value takes priority on the client.

Arguments

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

Returns

1 string
The material that overrides this index, if any.

Page Links


Special Pages


Wikis

?

Render Time: 41ms

Session 0
DB GetPage 8
Generate Html 1
SaveChanges 12
Render Body 0
Render Sidebar 18