Garry's Mod Wiki
Description
Overrides a single material on the model of this entity.
To set a Lua material created with CreateMaterial, just prepend a !
to the material name.
Arguments
1 number index = nil
Index of the material to override, acceptable values are from 0 to 31.
Indexes are by Entity:GetMaterials, but you have to subtract 1 from them.
If called with no arguments, all sub materials will be reset.
2 string material = nil
The material to override the default one with. Set to nil to revert to default material.
This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.
Page content is automatically updated four times a day. Edits and history are not available.
Last Parsed: Loading...