Garry's Mod Wiki

Garry's Mod Wiki

  render.MaterialOverrideByIndex( number index = nil, IMaterial material = nil )

Description

Similar to render.MaterialOverride, but overrides the materials per index. Similar to Entity:SetSubMaterial

render.MaterialOverride overrides effects of this function.

Arguments

1 number index = nil
The index of the material to override, in range of 0 to 31. nil will reset all overrides.
2 IMaterial material = nil
The material to override with, nil will reset the override for given index.

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 twice a day. Edits and history are not available.

Last Parsed: Loading...