Garry's Mod Wiki

IMaterial:SetInt

IMaterial:SetInt( string materialInt, number int )

Description

Sets the specified material value to the specified int, does nothing on a type mismatch.

Please note that certain material flags such as $model are stored in the $flags variable and cannot be directly set with this function. See the full list here: Material Flags

Arguments

1 string materialInt
The name of the material int.
2 number int
The new int value.

Page Links


Special Pages


Wikis

?

Render Time: 42ms

DB GetPage 4
Generate Html 4
SaveChanges (1) 17
Render Body 0
Render Sidebar 15