# GetMeshMaterial

Objects
Display
5.1 OC
string
int submesh If the mesh is composed of multiple submeshes then this parameter can be used to specify the submesh whose material to query.
Returns the material currently set for the calling object.
if
(GetMeshMaterial() == "Clonk_Body") SetMeshMaterial("Clonk_Body_EyesClosed") else SetMeshMaterial("Clonk_Body");
If a clonk has its eyes open then this script makes it close them, otherwise they are opened.
SetMeshMaterial
Clonk-Karl
2010-04