Logic lineto: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(-concise page)
Line 1: Line 1:
{{base point|logic_lineto}}  
{{base point|logic_lineto}} It calculates and outputs a vector from one entity to another.
 
==Entity description==
It calculates and outputs a vector from one entity to another.


== Keyvalues ==
== Keyvalues ==
{{KV|Start entity|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|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}}
{{KV Targetname}}
== Inputs ==
{{I 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}}
{{O Targetname}}
== See also ==
* [[ai_changetarget]]

Revision as of 12:47, 27 October 2022

Template:Base point 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.