Logic lineto: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
Tip:Example of entities that have inputs which take vector: 
prop_scalable, prop_coreball, shadow_control, keyframe_rope, func_breakable_surf and all entities inheriting CBaseAnimating have SetModelScale input (not in all games)
		
	
| Line 10: | Line 10: | ||
== Outputs ==  | == 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}}  | {{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}}, {{ent|keyframe_rope}}, {{ent|func_breakable_surf}} and all entities inheriting CBaseAnimating have [[Model_entity/Generic_Keyvalues,_Inputs_and_Outputs#Inputs|SetModelScale input]] (not in all games)}}  | {{tip|Example of entities that have inputs which take vector: <br>{{ent|prop_scalable}}, {{ent|prop_coreball}}, {{ent|shadow_control}}, {{ent|keyframe_rope}}, {{ent|func_breakable_surf}} and all entities inheriting CBaseAnimating have [[Model_entity/Generic_Keyvalues,_Inputs_and_Outputs#Inputs|SetModelScale input]] (not in all games)}}  | ||
{{todo|list more}}  | {{todo|list more}}  | ||
Revision as of 10:59, 27 April 2025
| CLogicLineToEntity | 
logic_lineto  is a   point entity  available in all 
 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. 
parentnameortarget).
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 <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. 
prop_scalable, prop_coreball, shadow_control, keyframe_rope, func_breakable_surf and all entities inheriting CBaseAnimating have SetModelScale input (not in all games)
Todo: list more