Trying to update some older code and I have run into a problem.
I want to shift the UV of the texture on a view entity. The old code was like this;
Code:
entity argile_ent
{
type = <argile.mdl>;
layer = 2;
view = camera;
x = 0; y = 0; z = 0;
}
function scroll_argile_texture()
{
while(1)
{
argile_ent.v += time*3;
wait(1);
}
}
This worked fine, but now this method has been removed from the engine. How can
I do this?
I have tried the using mtlFX.wdl like this;
Code:
include <mtlFX.wdl>;
entity argile_ent
{
type = <argile.mdl>;
layer = 2;
view = camera;
x = 0; y = 0; z = 0;
material = mtl_uvspeed;
}
function scroll_argile_texture()
{
while(1)
{
argile_ent.skill2 = 3;
wait(1);
}
}
Which seems to work for models, but it makes the view ent completly disappear
(no errors). I have also tried setting the view ents material elswhere like this "argile_ent.material = mtl_uvspeed;", but no luck.
Anyone have any ideas?
Thanks!