I wanted to apply a meterial using the ent_mtlset command and experienced the following strange behaviour.

The behaviour is the same in version 7.5 and 7.53 which i tested with the sample project below.

This is the code which produces the picture below:
Code:
action testblock1() {
	my.material = dm_brick01;
}

action testblock2() {
	ent_mtlset(my,dm_brick01,1);
}


With this code no shader seems to be effetive on both entities
Code:
action testblock1() {
	ent_mtlset(my,dm_brick01,1);
}

action testblock2() {
	ent_mtlset(my,dm_brick01,1);
}


With this code the shader works on both entities
Code:
action testblock1() {
	my.material = dm_brick01;
}

action testblock2() {
	my.material = dm_brick01;
}


Sample Project

Picture: Block on the left using ent_mtlset shows not the expected result, on the right with my.material everything works fine