Env texturetoggle: Difference between revisions
Jump to navigation
Jump to search

Tip:You can fire AddOutput
(updates) |
(Added a useful tip) |
||
Line 5: | Line 5: | ||
{{code class|CTextureToggle|env_texturetoggle.cpp}} | {{code class|CTextureToggle|env_texturetoggle.cpp}} | ||
{{tip|You can fire [[AddOutput]] <code>texframeindex #</code> which will change the textures frame index without needing this entity.}} | |||
==Keyvalues== | ==Keyvalues== |
Revision as of 08:25, 31 August 2020

Template:Base point It allows you to change the textures on brush entities or overlays.
In order for env_texturetoggle
to work properly, your overlay or at least one face of your brush must use a VMT material with the ToggleTexture
proxy defined and pointing to an animated VTF file with at least two frames.

texframeindex #
which will change the textures frame index without needing this entity.Keyvalues
- Target Brush(es) (target) ([todo internal name (i)]) <targetname>
- Name of the brushes or info_overlays. All
ToggleTexture
materials on all entities (including sprites) matching the targetname will be affected.
Inputs
- IncrementTextureIndex
- Increments target brush's current texture frame by one.
- SetTextureIndex <integer >
- Sets target brush's texture frame to the specified index.