Env texturetoggle

From Valve Developer Community
Revision as of 21:13, 2 October 2018 by Pinsplash (talk | contribs) (updates)
Jump to navigation Jump to search
English (en)中文 (zh)Translate (Translate)
Env texturetoggle.png

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.

C++ In code, it is represented by theCTextureToggleclass, defined in theenv_texturetoggle.cppfile.

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 <integerRedirectInput/integer>
Sets target brush's texture frame to the specified index.


Outputs

See Also