Env texturetoggle

From Valve Developer Community
Jump to navigation Jump to search
Env texturetoggle.png

Template:Base point It allows you to change the textures on other brush-built entities.

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.

Compare this with the material_modify_control entity that can modify any parameter of a material globally.

Keyvalues

Target Brush(es). ([todo internal name (i)]) <targetname>
Name of the brushes or info_overlays. All ToggleTexture materials on all entities matching the targetname will be affected.
Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

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