Re: light button
Posted by RaPtoR on
Fri Jul 15th 2005 at 12:00am
Posted
2005-07-15 12:00am
RaPtoR
member
212 posts
61 snarkmarks
Registered:
Jan 1st 2005
Location: Sweden
Hi buddies! Time for ME to ask a question! ^^
I'm working on an elevator now and i'm thinking of adding symbols that
will light up when they are triggered. I know how to make textures so i
thought of making two textures for each symbol (a button, an arrow
down, up etc.. everything that's needed on an elevator panel). One
texture that's dark, and one thats yellow (lit up). Dunno if this will
work though, i can think of several solutions (like two buttons that
moves instantaniusly and switches between the lit up and the dark
texture) but there is probalby better ways, witch one; who might have
worked on something like this before; probably can tell me.
Anyone tried anything like this before?
Is there a better way to make the symbols look "lighten up"?
If there's not, how do you "switch between the arrow textures? (what kind of entitys do i need?)
God got tired waiting all sunday for the world to compile and finaly had it.
On the Eight day, god created func_details, and he saw that it was fast.
Re: light button
Posted by poisonic on
Fri Jul 15th 2005 at 10:10pm
Posted
2005-07-15 10:10pm
78 posts
18 snarkmarks
Registered:
Jun 8th 2005
By example of an vmt:
"UnlitGeneric" :causes so light up texture just like a skybox
{
"$baseTexture" "poisonictexture/reddigit"
"Proxies"
{
"ToggleTexture" enabbles toggeling in a VTF between diverent frames
{
"toggleTextureVar" "$baseTexture"
"toggleTextureFrameNumVar" "$frame"
"toggleTextureShouldWrap" "0"
}
}
}
To make a switchable tex use vtfedit import 2 or more frames save it......
thats 1 part.
part 2 open hammer make a button aply your texture on it name the button
add a env_texturetoggle name it and select the etinity where the switchable tex is.
now setup the outputs of the func_button onpressed texturetogglename incrediment index
Re: light button
Posted by RaPtoR on
Sat Jul 16th 2005 at 10:39am
Posted
2005-07-16 10:39am
RaPtoR
member
212 posts
61 snarkmarks
Registered:
Jan 1st 2005
Location: Sweden
Sounds like this would work excelent thx! :]
If you post it as a possible solution i can set it as corrected answer
so you will get a lot of snarkmarks. And it's still editable. :wink:
God got tired waiting all sunday for the world to compile and finaly had it.
On the Eight day, god created func_details, and he saw that it was fast.