Material modify control: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
mNo edit summary
Line 1: Line 1:
==Entity Description==
An entity that can be used to directly control material vars. To use it, you need to read the [[.vmt]] of the material you intend to change. Parent this entity to a brush model entity whose material you want to control.
An entity that can be used to directly control material vars. To use it, you need to read the [[.vmt]] of the material you intend to change. Parent this entity to a brush model entity whose material you want to control.


Line 19: Line 20:
==Outputs==
==Outputs==
*{{o targetname}}
*{{o targetname}}
[[Category:Entities]]

Revision as of 06:03, 28 September 2005

Entity Description

An entity that can be used to directly control material vars. To use it, you need to read the .vmt of the material you intend to change. Parent this entity to a brush model entity whose material you want to control.

Keyvalues

Material to modify
  • materialVar <string>
Variable of the material to modify

Inputs

Fire to modify a material variable. The argument is the value to set the variable to.
  • SetMaterialVarToCurrentTime
This sets the material variable to the current time on the server.

Outputs