Difference between revisions of "%keywords"

From Valve Developer Community
Jump to: navigation, search
m (added note about commas)
m (added another keyword into the example to demonstrate)
Line 10: Line 10:
 
         "$basetexturetransform" "center .5 .5 scale 1 1 rotate 0  translate 0 0"
 
         "$basetexturetransform" "center .5 .5 scale 1 1 rotate 0  translate 0 0"
 
         "$basetexturetransform2" "center .5 .5 scale 4 4 rotate 0 translate 0 0"
 
         "$basetexturetransform2" "center .5 .5 scale 4 4 rotate 0 translate 0 0"
"%keywords" "wasteland"
+
"%keywords" "wasteland,c17"
 
}
 
}
  

Revision as of 02:45, 26 March 2010

Used to set a keyword filter that can be filtered in hammer for easier texture finding.

VMT syntax example

"WorldVertexTransition"
{
	"$basetexture" "nature/cliffface002a"
	"$basetexture2" "nature/dirtfloor004a"
	"%tooltexture" "nature/blendcliffdirt001a_tooltexture"
        "$basetexturetransform" "center .5 .5 scale 1 1 rotate 0  translate 0 0"
        "$basetexturetransform2" "center .5 .5 scale 4 4 rotate 0 translate 0 0"
	"%keywords" "wasteland,c17"
}

Entering wasteland into the keywords field in the hammer texture browser would show only textures with the wasteland keyword. This is useful for categorising your textures for easier finding.

Note: To have more than one keyword, separate the keywords with a comma.