Phys convert: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Robot: fixing template case.)
(Cleanup)
Line 1: Line 1:
{{wrongtitle|title=phys_convert}}
{{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]].
{{base_point}}


==Entity Description==
== Keyvalues ==
Turns an arbitrary entity into a physically simulated entity. i.e. brush entities will behave like [[func_physbox]], model entities behave like [[prop_physics]].
{{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}}


* See also [[Blowout Doors]] - A phys_convert in use.
== Flags ==
* See also [[Prop_physics_override]] - Should act somewhat similar to this.
* 1 : Convert Asleep
* 2 : Convert As Debris


==Keyvalues==
== Inputs ==
*{{KV Targetname}}
{{IO|ConvertTarget|Converts this entity's target to a physically simulated object.}}
*'''target''' <target_destination>
{{I Targetname}}
:Name of the entity that will be converted to a physics object when the '''ConvertTarget''' input is fired.
*'''swapmodel''' <target_destination>
:Model Swap Entity


==Flags==
== Outputs ==
*1: Convert Asleep
{{IO|OnConvert|Fires after the conversion has taken place.}}
{{O Targetname}}


==Inputs==
== See also ==
*{{I Targetname}}
* [[Blowout Doors]] - A phys_convert in use.
*'''ConvertTarget'''
* [[Prop_physics_override]] - Should act somewhat similar to this.
:Converts this entity's target to a physically simulated object.
 
==Outputs==
*{{O Targetname}}
*'''OnConvert'''
:Fires after the conversion has taken place. {{activator|activator}}

Revision as of 08: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 ConvertTarget input is fired.
Model Swap Entity ([todo internal name (i)]) <string>
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. parentname or target).
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