Quote: "if entityelement(e).eleprof.tex1id<>0 then texture object obj,1,entityelement(e).eleprof.tex1id
if entityelement(e).eleprof.tex2id<>0 then texture object obj,2,entityelement(e).eleprof.tex2id
if entityelement(e).eleprof.tex3id<>0 then texture object obj,3,entityelement(e).eleprof.tex3id
texture object obj,0,entityelement(e).eleprof.texdid"
okay, there's your problem.
If the entity was previously using a shader, then you use those textures, but you have to reset its shader. So you would do
entityelement.eleprof.usingeffect=entityelement.eleprof.previouseffect
set object effect obj,entityelement(e).eleprof.usingeffect
objecteffect(obj)=entityelement(e).eleprof.usingeffect
If it wasn't using a shader then you just use
texture object obj,0,entityelement(e).eleprof.texdid
I'd change the world, but I don't have the source code
