Env physexplosion: Difference between revisions
Jump to navigation
Jump to search
Note:Beyond a certain point, increasing the magnitude will not increase the force of the explosion. If you require a bigger explosion than this, create multiple identical copies of the entity.
m (→Flags: ep1 add) |
m (ep1 add) |
||
Line 23: | Line 23: | ||
: <float> Clamp radius (0 = auto) If specified, the radius in which the explosion damages entities. If unspecified, the radius will be based on the magnitude. | : <float> Clamp radius (0 = auto) If specified, the radius in which the explosion damages entities. If unspecified, the radius will be based on the magnitude. | ||
* '''targetentityname''' | * '''targetentityname''' | ||
: <target_destination> If specified, the explosion will only affect the matching entity. | : <target_destination> If specified, the explosion will only affect the matching entity. | ||
* '''{{ep1 add|inner_radius}} | |||
: <float> If not zero, the LOS is calculated from a point intersecting this sphere. | |||
==Flags== | ==Flags== | ||
* 1 : No Damage - Only Force | * 1 : No Damage - Only Force | ||
Line 40: | Line 42: | ||
==Outputs== | ==Outputs== | ||
* {{o targetname}} | * {{o targetname}} | ||
* '''{{ep1 add|OnPushedPlayer}} | |||
: Fires when the player is pushed by the explosion. | |||
==See Also== | ==See Also== | ||
* [http://www. | * [http://www.sdknuts.com/tutorials/wiseExplosion.asp Explosions for effect] | ||
* [http://www. | * [http://www.sdknuts.com/tutorials/wisePhysbox2.asp Method of propelling objects] | ||
* [http://www. | * [http://www.sdknuts.com/tutorials/wiseCollapse.asp Creating wall collapses] | ||
[[Category:Entities]] | [[Category:Entities]] |
Revision as of 12:37, 5 August 2006
Entity Description
Env_physexplosion applies a physical force to physics objects within its radius, anything from a gentle nudge to a big explosion, depending on its magnitude. The explosion itself is not visible; for visible explosions, use env_explosion.
If the No Damage - Only Force flag isn't set, the object will also take damage from the explosion. (Damage is applied to the object only - the explosion will never directly damage the player.)
Env_physexplosions set to emit a fairly low force can be useful to get lights swinging or floating debris moving.

Availability
Template:In game Template:Game-base Template:In code
Keyvalues
- Template:Kv targetname
- Template:Kv parentname
- magnitude
- <float> Amount of physics force applied by the explosion.
- radius
- <float> Clamp radius (0 = auto) If specified, the radius in which the explosion damages entities. If unspecified, the radius will be based on the magnitude.
- targetentityname
- <target_destination> If specified, the explosion will only affect the matching entity.
- <float> If not zero, the LOS is calculated from a point intersecting this sphere.
Flags
- 1 : No Damage - Only Force
- Don't make the object take damage from the explosion.
Inputs
- Trigger the explosion.
Outputs
- Fires when the player is pushed by the explosion.