env_texturetoggle

From Source Entities
Jump to navigation Jump to search

Code classes:

Env texturetoggle.png

env_texturetoggle is a point entity present in all Source games. It allows you to change the textures on 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.

Keyvalues[edit | edit source]

Target Brush(es) (target) <target_destination>
Name of the entities. All ToggleTexture materials on all entities (including sprites) matching the targetname will be affected.

Inputs[edit | edit source]

IncrementTextureIndex
Increments the texture's current frame by one.
SetTextureIndex <integer>
Sets the texture's frame to the specified number.

See Also[edit | edit source]