From the manual, ent_mtlset:
"Replaces skin lighting and skin effect of a model (...) Material parameters that do not belong to a skin - for instance material skills or matrices - are not modified."
You need to assign a material to the entity that is able to run your skin effects. Your entity material "nullmat" has no events or matrices, so your code above can't work.