SetMaterialCel
Sets the material cel of a material. This directly affects all objects which use the material. Note that SetMaterialCel() has no affect on surfaces that have a cel value other than -1. Syntax:
SetMaterialCel(mat, cel_num);
Related:
GetMaterialCel()
Surface - Material Anims
Alternatives:
SetSurfaceCel()