Env physimpact: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(→‎Availability: added availability section)
Line 12: Line 12:
*{{kv parentname}}
*{{kv parentname}}
*'''angles'''
*'''angles'''
:<string> Direction to project the impact.
:<angle> Direction to project the impact.
*'''magnitude'''
*'''magnitude'''
:<integer> Strength of the impact.
:<float> Strength of the impact.
*'''distance'''
*'''distance'''
:<integer> How far to project the impact (if 0 uses a default value).
:<float> How far to project the impact (if 0 uses a default value).
*'''directionentityname'''
*'''directionentityname'''
:<target_destination> If set, 'Distance' and Angle settings are ignored and the direction and distance to the target entity will be used.
:<target_destination> If set, 'Distance' and Angle settings are ignored and the direction and distance to the target entity will be used.

Revision as of 18:28, 8 October 2005

Template:Wrongtitle

Entity Description

An entity that will cause a physics impact on another entity.

Availability

Template:In game Template:Game-base Template:In code

Keyvalues

<angle> Direction to project the impact.
  • magnitude
<float> Strength of the impact.
  • distance
<float> How far to project the impact (if 0 uses a default value).
  • directionentityname
<target_destination> If set, 'Distance' and Angle settings are ignored and the direction and distance to the target entity will be used.

Flags

  • 1 : No fall-off
  • 2 : Infinite Length
  • 4 : Ignore Mass

Inputs

Trigger the impact