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 (Categorized)
 
(23 intermediate revisions by 11 users not shown)
Line 1: Line 1:
{{wrongtitle|title=logic_lineto}}
{{LanguageBar}}
{{CD|CLogicLineToEntity|file1=logicentities.cpp}}
{{this is a|logical entity|name=logic_lineto}} It calculates and outputs a vector from one entity to another.


==Entity Description==
== Keyvalues ==
'''Entity Name:''' logic_lineto
{{KV Targetname}}
{{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.}}


An entity that calculates and outputs a vector from one entity to another.
== Outputs ==
 
{{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}}
==Entity Values==
:{{seealso|[[Special:WhatLinksHere/RedirectInput/Vector|See entities that have an input of Vector type]]}}
===Keys===
 
* '''Name''' ''targetname <target_source>''
** The name that other entities refer to this entity by.
* '''Start entity''' ''source <target_destination>''
** Name of the entity the line should start from.
* '''End entity''' ''target <target_destination>''
** Name of the entity that line should end at.
 
 
===Inputs===
 
* '''Kill'''
** Removes this entity from the world.
* '''KillHierarchy''' 
** Removes this entity and all its children from the world.
* '''AddOutput''' ''<output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire (-1 == infinite)>''
** Adds an entity I/O connection to this entity. Very dangerous, use with care
* '''FireUser1'''
** Causes this entity's OnUser1 output to be fired.
* '''FireUser2'''
** Causes this entity's OnUser2 output to be fired.
* '''FireUser3'''
** Causes this entity's OnUser3 output to be fired.
* '''FireUser4'''
** Causes this entity's OnUser4 output to be fired.
 
 
===Outputs===
 
* '''OnUser1'''
** Fired in response to FireUser1 input.
* '''OnUser2'''
** Fired in response to FireUser2 input.
* '''OnUser3'''
** Fired in response to FireUser3 input.
* '''OnUser4'''
** Fired in response to FireUser4 input.
* '''Line <vector>'''
** Fired when the vector, from the start entity to the end entity, changes. Passes along the vector as a parameter.
 
 
==Additional Info==
* See also [[Ai_changetarget]]
 
[[Category:Entities]]

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.