Prop under button: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
Note: See Model entity/Generic Keyvalues, Inputs and Outputs for keyvalues and inputs that affect model rendering. 
Note that the following keyvalues are unavailable due to being overridden by game code:
model, sequence, solid, fademindist, fademaxdist, fadescale
It may still be possible to use their associated inputs or AddOutput them.
		
	
SirYodaJedi (talk | contribs)  | 
				m (Substituted IO templates)  | 
				||
| Line 17: | Line 17: | ||
==Inputs==  | ==Inputs==  | ||
{{  | {{I|Press|Cause the button to be pressed.}}  | ||
{{  | {{I|Lock|Locks the button.}}  | ||
{{  | {{I|UnLock|UnLocks the button.}}  | ||
{{  | {{I|CancelPress|Causes the button to reset quietly and without firing OnButtonReset outputs.}}  | ||
==Outputs==  | ==Outputs==  | ||
{{  | {{O|OnPressed|Called when the button has been pressed.}}  | ||
{{  | {{O|OnPressedBlue|Called in Coop when the button has been pressed by the Blue player.}}  | ||
{{  | {{O|OnPressedOrange|Called in Coop when the button has been pressed by the Orange player.}}  | ||
{{  | {{O|OnButtonReset|Called when the button has reset after being pressed.}}  | ||
== See also ==  | == See also ==  | ||
Revision as of 22:06, 20 April 2025
| CPropUnderButton | 
prop_under_button  is a   point entity  available in 
 Portal 2. 
It is a button which is activated by player use or by game inputs, for use in underground test chambers. It has the exact same function as prop_button, but with a different model and sound.
Keyvalues
Note that the following keyvalues are unavailable due to being overridden by game code:
model, sequence, solid, fademindist, fademaxdist, fadescale
It may still be possible to use their associated inputs or AddOutput them.
- Name (targetname) <string>[ Edit ]
 - The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. 
parentnameortarget).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities 
- Delay Before Reset (delay) <float>
 - Amount of time, in seconds, after the button has been pressed before it returns to the starting position. Once it has returned, it can be used again.
 
- Play timer sound? (istimer) <boolean>
 - If set, this button will play timer sounds while button is depressed. This allows fast reset by default - use Prevent fast reset to stop this.
 
- Prevent fast reset? (preventfastreset) <boolean>
 - Buttons that are timer's allow you to reset early - use this to make the button stick for the entire duration.
 
- Skin (skin) <choices>
 - Affects the pillar skin. Same as a prop entity's Skin KV.
- 0 : Clean
 - 1 : Rusted
 
 
Note:This appears to be a holdover from prop_button and has no actual effect because the model used by prop_under_button only has one skin.
- Solid ([todo internal name (i)]) <boolean> !FGD
 - Makes the button non-solid to objects and the player. It can still be pressed like normal.
 
Inputs
- Press
 - Cause the button to be pressed.
 
- Lock
 - Locks the button.
 
- UnLock
 - UnLocks the button.
 
- CancelPress
 - Causes the button to reset quietly and without firing OnButtonReset outputs.
 
Outputs
- OnPressed
 - Called when the button has been pressed.
 
- OnPressedBlue
 - Called in Coop when the button has been pressed by the Blue player.
 
- OnPressedOrange
 - Called in Coop when the button has been pressed by the Orange player.
 
- OnButtonReset
 - Called when the button has reset after being pressed.