| ENTITY* | Target entity pointer (models or nonchunked terrain only). |
| material | Source material pointer. If the entity skin contains no material, it gets the light parameters from the source material. If it already contains a material, its light parameters are replaced by the source material lighting. If the source material contains an effect or shader, it replaces the skin effect. |
| skin | Number of the skin. |
ent_mtlset(me,mtl_new,1); // replaces the material of the first entity skin