VMT:
- Code: Select all
"LightmappedGeneric"
{
"$basetexture" "custom/plastic_ring_a"
"$surfaceprop" "plastic"
"$normalmap" "custom/plastic_ring_normal"
"$envmap" "env_cubemap"
"$envmaptint" "[ .03 .03 .03 ]"
"$envmapcontrast" 0.5
"$envmapsaturation" 1
"$selfillum" 1
"%keywords" "portal"
"%noportal" 1
"Proxies"
{
"ToggleTexture"
{
"toggleTextureVar" "$baseTexture"
"toggleTextureFrameNumVar" "$frame"
"toggleTextureShouldWrap" "0"
}
}
}
I've got a trigger_multiple set up to make it work, whcih also opens a door.
- Code: Select all
OnStartTouch ===> toggle01 ===> SetTextureIndex ===>1
OnEndTouchAll ===> toggle01 ===> SetTextureIndex ===>0
The door opens, but the textures don't change. I've checked the vmts in Portal's GCF, and they look to be the same as mine. I'm completly stumped. Anyone got any idea what could be causing this?
Edit
Haven't changed anything, yet when I loaded my map today, the textures did change. If anyone else has this problem, try restarting Steam. That's the only reason I can think of for this now working.


