skin
Post Reply
Quote
Re: skin
Posted by Samoflan on Thu Dec 9th at 1:03am 2004


I am trying to make a button that when you press it the skin will change.

So far I have made a block that doesn't render, (func_button) it activates my door.

I then have a prop keypad placed in front of it (func_dynamic). This is where I have my problem. The keypad has 3 skins. I am trying to figure out how I change the skin from being blank to saying "access" when I press the button.

Note I cannot make the prop a func_button. I have to use a block and not render it and place behind my keypad. If you know a better way please let me know.

So basicly I am trying to make a prop button animate when I press it.





Quote
Re: skin
Posted by parakeet on Thu Dec 9th at 1:17am 2004


Sorry to be too technical but the proper term for this is "texture" and animated textures (in halflife one) had a + before it so just put in the texture filter a + and the type you need should pop up . apply the texture to the button and last time i tried that was it = P [addsig]



Quote
Re: skin
Posted by Samoflan on Thu Dec 9th at 1:43am 2004


I am using a prop props_lab/keypad.mdl it has 3 skins. Being a prop I cannot use it as a func_button. So I havea block enity linked beind it to it as a func_button. I want to know how when I press that block that i have as my button it will change the skin on my keypad temporarly saying access for 2-3 secs then revert back to default skin.

A example of this is the keypads in blackmesa east.

props_lab/keypad.mdl has three skins - no text/acess/error

I cannot texture a prop.

Sorry if I wasn't clear enough the 1st time.





Quote
Re: skin
Posted by ReNo on Thu Dec 9th at 1:48am 2004


I think you would need to place the keypad prop in your map with the prop_dynamic entity, as this way you can give it a name. Once you have done this, make your button have an output that targets this prop, and gives it the "skin" command with whatever skin value you'd like to use.
[addsig]




Quote
Re: skin
Posted by Samoflan on Thu Dec 9th at 1:58am 2004


? quoting ReNo
I think you would need to place the keypad prop in your map with the prop_dynamic entity, as this way you can give it a name. Once you have done this, make your button have an output that targets this prop, and gives it the "skin" command with whatever skin value you'd like to use.

This is where I am stuck. I give my button the skin output command to my keypad, but how do I choose which skin for it to change to via output?





Quote
Re: skin
Posted by ReNo on Thu Dec 9th at 2:09am 2004


Use the parameter override box to give a value - 0 for the default skin, or other numbers for successive skins. Look at the prop's properties and set its skin to different values to find the right number (most are ranged from 0-3 or something, of they have any other skins at all) to enter.
[addsig]




Quote
Re: skin
Posted by Samoflan on Thu Dec 9th at 2:22am 2004


? quoting ReNo
Use the parameter override box to give a value - 0 for the default skin, or other numbers for successive skins. Look at the prop's properties and set its skin to different values to find the right number (most are ranged from 0-3 or something, of they have any other skins at all) to enter.

Perfect that was the one thing I was missing the parameter override value. Everything works and makes sense now !






Post Reply