Env physexplosion: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Added samples)
mNo edit summary
Line 1: Line 1:
{{stub}}
{{wrongtitle|title=env_physexplosion
 
==Entity Description==
env_physexplosion
 
Source(core) Point Entity: An entity that creates an explosion at it's origin. If the no-damage spawnflag is set, the explosion won't be visible, but will apply force to any physics objects within it's radius.
Source(core) Point Entity: An entity that creates an explosion at it's origin. If the no-damage spawnflag is set, the explosion won't be visible, but will apply force to any physics objects within it's radius.
 
==Keyvalues==
Properties
* {{kv targetname}}
 
* {{kv parentname}}
    * Name - targetname(target_source)
* '''magnitude'''
The name that other entities refer to this entity by.
: <float> Amount of physics force applied by the explosion.  
    * Parent - parentname(target_destination)
* '''radius'''
The name of this entity's parent in the movement hierarchy. Entities with parents move with their parent.
: <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.
    * Magnitude - magnitude(string) - default: 100
* '''targetentityname'''
Amount of physics force applied by the explosion.  
: <target_destination> If specified, the explosion will only affect the matching entity.  
    * Clamp radius (0 = auto) radius(string) - default: 0
==Flags==
If specified, the radius in which the explosion damages entities. If unspecified, the radius will be based on the magnitude.
* 1 : No Damage - Only Force
    * Limit to Entity - targetentityname(target_destination)
==Inputs==
If specified, the explosion will only affect the matching entity.  
* {{i targetname}}
 
* {{i parentname}}
Flag
* '''Explode'''
 
: Trigger the explosion.
    * NO Damage - Only Force - default: ON
==Outputs==
 
* {{o targetname}}
Input
==See Also==
 
*[http://www.akilling.org/akg/tutorials/wiseExplosion.asp Explosions for effect]
    * Kill - Removes this entity from the world.
*[http://www.akilling.org/akg/tutorials/wisePhysbox2.asp Method of propelling objects]
    * KillHierarchy - Removes this entity and all its children from the world.
*[http://www.akilling.org/akg/tutorials/wiseCollapse.asp Creating wall collapses]
    * ADD output - Adds an entity I/O connection to this entity. Format
    * FireUser1 - triggers the output OnUser1.
    * FireUser2 - triggers the output OnUser2.
    * FireUser3 - triggers the output OnUser3.
    * FireUser4 - triggers the output OnUser4.
    * SetParent - Changes the entity's parent in the movement hierarchy.
    * SetParentAttachment - Change this entity to attach to a specific attachment point on it's parent. Entities must be parented before being sent this input. The parameter passed in should be the name of the attachment.
    * ClearParent - Removes this entity from the the movement hierarchy, leaving it free to move independently.
    * Explode - Trigger the explosion.
 
Output
 
    * OnUser1 - Fired in response to FireUser1 input.
    * OnUser2 - Fired in response to FireUser2 input.
    * OnUser3 - Fired in response to FireUser3 input.
    * OnUser4 - Fired in response to FireUser4 input.
 
Remarks
None.
 
'''3rd Party examples''':
:[http://www.akilling.org/akg/tutorials/wiseExplosion.asp Explosions for effect]
:[http://www.akilling.org/akg/tutorials/wisePhysbox2.asp Method of propelling objects]
:[http://www.akilling.org/akg/tutorials/wiseCollapse.asp Creating wall collapses]
[[Category:Entities]]
[[Category:Entities]]

Revision as of 14:58, 24 August 2005

{{wrongtitle|title=env_physexplosion

Entity Description

Source(core) Point Entity: An entity that creates an explosion at it's origin. If the no-damage spawnflag is set, the explosion won't be visible, but will apply force to any physics objects within it's radius.

Keyvalues

<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.

Flags

  • 1 : No Damage - Only Force

Inputs

Trigger the explosion.

Outputs

See Also