Button keypad: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (spam removal)
m (minoro)
Line 3: Line 3:
[[Image:Prefab button keypad.jpg|thumb|200px|right|A dissected button_keypad prefab.]]
[[Image:Prefab button keypad.jpg|thumb|200px|right|A dissected button_keypad prefab.]]


A [[prefab]] located in the ''Prefabs HL2'' folder, containing a keypad setup.
'''button_keypad''' is a [[prefab]] located in the <code>Prefabs HL2</code> folder, containing a keypad setup.


This prefab includes the following:
This prefab is comprised of two entities
* A [[prop_dynamic]] using the ''models/props_lab/keypad.mdl'' model.
* A [[prop_dynamic]] using the <code>models/props_lab/keypad.mdl</code> model.
* A [[func_button]].
* A [[func_button]].


When pressed, the func_button is setup to make a sound and make the model briefly display "*ERROR*" through toggling its skin.
When pressed, the <code>func_button</code> is configured to make a specific sound and make the model briefly display "<code>*ERROR*</code>" message on the readout portion of skin.


{{tip|By changing the sound of the func_button, changing the skin to be switched to to ''1'' instead of ''2'', and adding an output to another entity, you can easily have the keypad grant access to something instead.}}
{{tip|By changing the sound of the <code>func_button</code>, adjusting the skin property to be switched to "1" instead of "2", and adding an output to another entity, you can easily have the keypad grant access to something instead.}}


[[Category:Prefabs]]
[[Category:Prefabs]]

Revision as of 06:14, 20 November 2007

Template:Wrongtitle

A dissected button_keypad prefab.

button_keypad is a prefab located in the Prefabs HL2 folder, containing a keypad setup.

This prefab is comprised of two entities

When pressed, the func_button is configured to make a specific sound and make the model briefly display "*ERROR*" message on the readout portion of skin.

Tip.pngTip:By changing the sound of the func_button, adjusting the skin property to be switched to "1" instead of "2", and adding an output to another entity, you can easily have the keypad grant access to something instead.