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
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
No edit summary
Line 1: Line 1:
{{LanguageBar}}
{{CD|CLogicLineToEntity|file1=logicentities.cpp}}
{{CD|CLogicLineToEntity|file1=logicentities.cpp}}
{{this is a|point entity|name=logic_lineto}} It calculates and outputs a vector from one entity to another.
{{this is a|point entity|name=logic_lineto}} It calculates and outputs a vector from one entity to another.


== Keyvalues ==
== Keyvalues ==
{{KV Targetname}}
{{KV|Start entity|intn=source|target_destination|Name of the entity the line should start from.}}
{{KV|Start entity|intn=source|target_destination|Name of the entity the line should start from.}}
{{KV|End entity|intn=target|target_destination|Name of the entity that line should end at.}}
{{KV|End entity|intn=target|target_destination|Name of the entity that line should end at.}}
{{KV Targetname}}


== Outputs ==
== Outputs ==
{{IO|Line|Fired when the vector, from the start entity to the end entity, changes. Passes along the vector as a parameter.|param=vector}}
{{IO|Line|Fired when the vector, from the start entity to the end entity, changes. Passes along the vector as a parameter.|param=vector}}
{{tip|Example of entities that have inputs which take vector: {{ent|prop_scalable}}, {{ent|prop_coreball}}, {{ent|shadow_control}} }}
{{todo|list more}}

Revision as of 15:24, 21 July 2024

English (en)Translate (Translate)
C++ Class hierarchy
CLogicLineToEntity
CLogicalEntity
CServerOnlyEntity
CBaseEntity
C++ logicentities.cpp

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

Keyvalues

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

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.

Outputs

Line <vectorRedirectInput/Vector>
Fired when the vector, from the start entity to the end entity, changes. Passes along the vector as a parameter.
Tip.pngTip:Example of entities that have inputs which take vector: prop_scalable, prop_coreball, shadow_control
Todo: list more