Garry's Mod Wiki

Revision Difference

IMaterial:SetInt#523761

<function name="SetInt" parent="IMaterial" type="classfunc"> <description>Sets the specified material value to the specified int, does nothing on a type mismatch. ⤶ Certain material flags are actually stored in the variable `$flags`, such as:⤶ * `$alphatest` - flag 256⤶ * `$model` - flag 2048⤶ * `$vertexcolor` - 16⤶ * `$vertexalpha` - 32⤶ * `$ignorez` - 32768⤶ * `$translucent` - 2097152⤶ * You can find the full list [here](https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/public/materialsystem/imaterial.h#L353)⤶ ⤶ <note>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: <page>Material Flags</page></note>⤶ </description> <realm>Shared</realm> <args> <arg name="materialInt" type="string">The name of the material int.</arg> <arg name="int" type="number">The new int value.</arg> </args> </function>