Garry's Mod Wiki

IMaterial:GetInt

number IMaterial:GetInt( string materialInt )

Description

Returns the specified material value as a int, rounds the value if its a float, or nil if the value is not set.

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

Arguments

1 string materialInt
The name of the material integer.

Returns

1 number
The retrieved value as an integer

Page Links


Special Pages


Wikis

?

Render Time: 206ms

DB GetPage 53
Generate Html 3
SaveChanges (1) 135
Render Body 0
Render Sidebar 13