So I'm using an animated texture on a large func_brush that is disabled by default. When it's enabled it of course displays the animated texture on it, but the problem is that it often the texture is half way though the animation.
What I want to know is if there is some way to force it to start at frame 0, so that I can make it start at the same time the func_brush is enabled.?
The only other way I might be able to try is by using a env_toggletexture with a SetTextureIndex input to set it on the starting frame, then sending a IncrementTextureIndex input every 0.05 seconds to animate the texture. I haven't tried this yet as I'd like to know if there is some simple command or other method first.
In case anyone needs is, this is the .vmt for the texture I'm using.
And in case anyone asks, I'm trying to make this in map form:
View: https://www.youtube.com/watch?v=nu0R96OZy6w
What I want to know is if there is some way to force it to start at frame 0, so that I can make it start at the same time the func_brush is enabled.?
The only other way I might be able to try is by using a env_toggletexture with a SetTextureIndex input to set it on the starting frame, then sending a IncrementTextureIndex input every 0.05 seconds to animate the texture. I haven't tried this yet as I'd like to know if there is some simple command or other method first.
In case anyone needs is, this is the .vmt for the texture I'm using.
Code:
"LightmappedGeneric"
{
"$basetexture" "custom/thx1"
"$selfillum" "1"
"Proxies"
{
"AnimatedTexture"
{
"animatedTextureVar" "$basetexture"
"animatedTextureFrameNumVar" "$frame"
"animatedTextureFrameRate" "20"
}
}
}
And in case anyone asks, I'm trying to make this in map form: