Button keypad: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		 Tip:By changing the sound of the
Tip:By changing the sound of the 
		
	
| m (Reverted edit of LetocOtatr, changed back to last version by MrThompson) | mNo edit summary | ||
| Line 1: | Line 1: | ||
| {{ | {{DISPLAYTITLE:button_keypad}} | ||
| [[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.]] | ||
Revision as of 23:53, 4 December 2011
button_keypad is a prefab located in the Prefabs HL2 folder, containing a keypad setup.
This prefab is comprised of two entities
- A prop_dynamic using the models/props_lab/keypad.mdlmodel.
- A func_button.
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:By changing the sound of the
Tip: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.