Point tesla: Difference between revisions
Jump to navigation
Jump to search
Note:This entity is spawned in an Off state and needs a TurnOn or DoSpark input in order to begin producing its effect.
mNo edit summary |
WhosAsking (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
[[File:Point_Tesla.jpg|thumb|260px|An active point_tesla]] | [[File:Point_Tesla.jpg|thumb|260px|An active point_tesla]] | ||
{{base point|point_tesla}} It creates lightning arcs around its origin similar to the ones created by Nicola Tesla's famous [http://en.wikipedia.org/wiki/Tesla_coil Tesla Coil] invention. | {{base point|point_tesla}} It creates lightning arcs around its origin similar to the ones created by Nicola Tesla's famous [http://en.wikipedia.org/wiki/Tesla_coil 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.}} | |||
{{in code|class=class_c_tesla.html CTesla|file=tesla_8cpp-source.html tesla.cpp}} | {{in code|class=class_c_tesla.html CTesla|file=tesla_8cpp-source.html tesla.cpp}} |
Revision as of 16:56, 30 May 2012
Template:Base point It creates lightning arcs around its origin similar to the ones created by Nicola Tesla's famous Tesla Coil invention.

Keyvalues
- Source Entity ([todo internal name (i)]) <string>
- If specified, tesla lightning will originate from the specified entity. Otherwise, they originate from this entity.
- Radius ([todo internal name (i)]) <integer>
- Radius around the origin to find a point to strike with a tesla lightning beam.
- Min # of Beams ([todo internal name (i)]) <integer>
- Minimum number of tesla lightning beams to create when creating an arc.
- Max # of Beams ([todo internal name (i)]) <integer>
- Maximum number of tesla lightning beams to create when creating an arc.
- Name (targetname) <string>[ Edit ]
- 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.