# SetMeshMaterial

Objects
Display
5.1 OC
bool
string material Name of the material to set. It needs to be loaded at engine startup, i.e. it needs to be defined in a *.material file being located in an object that was loaded.
int submesh If the mesh is composed of multiple submeshes then this parameter can be used to specify the submesh whose material is to be changed.
Changes the material of the calling object's mesh at runtime.
SetMeshMaterial
("Clonk_Body_EyesClosed"); Schedule("SetMeshMaterial(\"Clonk_Body\")", 5);
Makes a clonk blink.
GetMeshMaterial
Clonk-Karl
2010-04