Phys convert: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
m (Robot: fixing template case.)  | 
				 (Cleanup)  | 
				||
| Line 1: | Line 1: | ||
{{  | {{base point|phys_convert}} It turns an arbitrary entity into a physically simulated entity. i.e. brush entities will behave like [[func_physbox]], model entities behave like [[prop_physics]].  | ||
==  | == Keyvalues ==  | ||
{{KV|Entity to convert|target_destination|Name of the entity that will be converted to a physics object when the <code>ConvertTarget</code> input is fired.}}  | |||
{{KV|Model Swap Entity|string}}  | |||
{{KV|Mass Override|float|Sets the mass when the object(s) are converted (0 means auto-calculate)}}  | |||
{{KV Targetname}}  | |||
*   | == Flags ==  | ||
*   | * 1 : Convert Asleep  | ||
* 2 : Convert As Debris  | |||
==  | == Inputs ==  | ||
{{IO|ConvertTarget|Converts this entity's target to a physically simulated object.}}  | |||
{{I Targetname}}  | |||
==  | == Outputs ==  | ||
{{IO|OnConvert|Fires after the conversion has taken place.}}  | |||
{{O Targetname}}  | |||
==  | == See also ==  | ||
*  | * [[Blowout Doors]] - A phys_convert in use.   | ||
*  | * [[Prop_physics_override]] - Should act somewhat similar to this.  | ||
Revision as of 07:15, 27 July 2011
Template:Base point It turns an arbitrary entity into a physically simulated entity. i.e. brush entities will behave like func_physbox, model entities behave like prop_physics.
Keyvalues
- Entity to convert ([todo internal name (i)]) <targetname>
 - Name of the entity that will be converted to a physics object when the 
ConvertTargetinput is fired. 
- Mass Override ([todo internal name (i)]) <float>
 - Sets the mass when the object(s) are converted (0 means auto-calculate)
 
- 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 
Flags
- 1 : Convert Asleep
 - 2 : Convert As Debris
 
Inputs
- ConvertTarget
 - Converts this entity's target to a physically simulated object.
 
Outputs
- OnConvert
 - Fires after the conversion has taken place.
 
See also
- Blowout Doors - A phys_convert in use.
 - Prop_physics_override - Should act somewhat similar to this.