Material modify control: Difference between revisions
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
- Template:Kv targetname
- Template:Kv parentname
- materialName <string>
- Material to modify
- materialVar <string>
- Variable of the material to modify
Inputs
- Template:I targetname
- Template:I parentname
- SetMaterialVar <string>
- 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.