[EN] Returns a string containing the material name
[RU] Возвращает строку, содержащую название материала.
Material.GetMaterialAtCrosshair()
Replace
[EN] Creates a proxy for the original material using the new material as an override
[RU] Создает прокси для исходного материала, используя новый материал в качестве замены
Parameters:original material name, new material name
Material.Replace(original_mat_name, new_mat_name)
[EN] Replacing a LightmappedGeneric with a WorldVertexTransition it may result in an invisible texture
[RU] Замена LightmappedGeneric на WorldVertexTransition может привести к невидимой текстуре.
RefreshProxy
Material.RefreshProxy(material_name)
[EN] Applies key values to the material
[RU] Применяет ключевые значения к материалу
Note: This function can only be used in functions with Material callback.
Destroy
Material.Destroy( name )
[EN] Returns true if material was destroyed successfully.
[RU] Возвращает истину, если материал был уничтожен успешно.
Parameters:name
Return values: Returns true if material was destroyed successfully.
Material.Destroy("cool material")
Create
Material.Create( name )
[EN] Returns true if material was created successfully or false otherwise.
[RU] Возвращает true, если материал был создан успешно, или false в противном случае.
Parameters:name
Return values: Returns true if material was created successfully or false otherwise.