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 (→‎Outputs: Substituted IO templates)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{LanguageBar}}
{{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|logical entity|name=logic_lineto}} It calculates and outputs a vector from one entity to another.


== Keyvalues ==
== Keyvalues ==
Line 9: Line 9:


== Outputs ==
== Outputs ==
{{O|Line|Fired when the vector, from the start entity to the end entity, changes. Passes along the vector as a parameter.|param=vector}}
{{O|Line|ac-is-this=1|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}} }}
:{{seealso|[[Special:WhatLinksHere/RedirectInput/Vector|See entities that have an input of Vector type]]}}
{{todo|list more}}

Latest revision as of 14:12, 7 May 2025

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

logic_lineto is a logical 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 <vectorRedirectOutput/Vector>
!activator = !caller = this entity
Fired when the vector, from the start entity to the end entity, changes. Passes along the vector as a parameter.