This article's documentation is for anything that uses the Source engine. Click here for more information.

Logic lineto: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (Updated old entity format to {{this is a}}. This action was perfomed by a bot.)
Line 1: Line 1:
{{CD|CLogicLineToEntity|file1=logicentities.cpp}}
{{CD|CLogicLineToEntity|file1=logicentities.cpp}}
{{entity|logic_lineto|type=e0}} It calculates and outputs a vector from one entity to another.
{{this is a|e0|name=logic_lineto}} It calculates and outputs a vector from one entity to another.


== Keyvalues ==
== Keyvalues ==

Revision as of 11:44, 4 January 2024

C++ Class hierarchy
CLogicLineToEntity
CLogicalEntity
CServerOnlyEntity
CBaseEntity
C++ logicentities.cpp

logic_lineto is an e0 available in all Source Source games. It calculates and outputs a vector from one entity to another.

Keyvalues

Start entity (source) <targetname>
Name of the entity the line should start from.
End entity (target) <targetname>
Name of the entity that line should end at.
Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Outputs

Line <vectorRedirectInput/Vector>
Fired when the vector, from the start entity to the end entity, changes. Passes along the vector as a parameter.