point_tesla
Jump to navigation
Jump to search
point_tesla
is a point entity available in all Source games. It creates lightning arcs around its origin similar to the ones created by Nikola Tesla's famous Tesla coil invention.
Note:This entity is spawned in an Off state and needs a TurnOn or DoSpark input in order to begin producing its effect.
Keyvalues
- Source Entity (m_SourceEntityName) <string>
- If specified, tesla lightning will originate from the specified entity. Otherwise, they originate from this entity.
Note:Although the Source Entity is evaluated at activation time, !activator is not supported.
- Sound Name (m_SoundName) <string>
- Sound to be played whenever lightning is created.
- Sprite Name (texture) <sprite>
- Material to use for the tesla lightning beams.
- Color (m_Color) <color255>
- Beam color.
- Radius (m_flRadius) <integer>
- Radius around the origin to find a point to strike with a tesla lightning beam.
- Min # of Beams (beamcount_min) <integer>
- Minimum number of tesla lightning beams to create when creating an arc.
- Max # of Beams (beamcount_max) <integer>
- Maximum number of tesla lightning beams to create when creating an arc.
- Min Beam Width (thick_min) <string>
- Minimum width of the tesla lightning beams.
- Max Beam Width (thick_max) <string>
- Maximum width of the tesla lightning beams.
- Min Time Visible (lifetime_min) <string>
- Minimum lifetime of the tesla lightning beams.
- Max Time Visible (lifetime_max) <string>
- Maximum lifetime of the tesla lightning beams.
- Min Time Between Arcs (interval_min) <string>
- Minimum time delay between random arcing.
- Max Time Between Arcs (interval_max) <string>
- Maximum time delay between random arcing.
- Name (targetname) <string>
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
Parentname:
- Parent (parentname) <targetname>
- Specifies a movement parent. An entity will maintain its initial offset from its parent. An attachment point can be added to the end of the name, separated by a comma.
Inputs
- TurnOn
- Turn emitter on.
- TurnOff
- Turn emitter off.
- DoSpark
- Force a single arc.
Parentname:
- SetParent <string>
- Move with this entity. See Entity Hierarchy (parenting).
- SetParentAttachment <string>
- Change this entity to attach to a specific attachment point on its parent. The entity will teleport so that the position of its root bone matches that of the attachment. Entities must be parented before being sent this input.
- SetParentAttachmentMaintainOffset <string>
- As above, but without teleporting. The entity retains its position relative to the attachment at the time of the input being received.
- ClearParent
- Removes this entity from the the movement hierarchy, leaving it free to move independently.