Talk:Logic lineto

From Valve Developer Community
Jump to: navigation, search

I can see then the logic_lineto can only be linked to a Func_breakable_surf , but even if it can only be linked to it, the <vector> values are not corresponding (Shatter <vector> Shatter the window. The input is a vector. First two coordinates are the X,Y center of the shattering (as values from from 0-1). The third coordinate is the radius of the shatter, in inches.""). So whats the use of this entity? As long as a Logic_compare can't compare vector values and there is no entity that can say "get the second value in the vector", I can't see it, can you explain?--Hurricaaane 02:27, 31 Oct 2005 (PST)

I don't see this being related to func_breakable_surf.
In logicentities.cpp it measures the lineto distance from one logical entity to another.
It also has a Start and End fallback to measure Sound if the logical entity fails.
This entity wasn't used in HL2 and I haven't tested it, yet.--wisemx 04:05, 31 Oct 2005 (PST)

it's not that useful because you can't determine which entity is the end ent—ts2do (talk) 05:54, 31 Oct 2005 (PST)

I believe it could be very useful, coupled with a trigger_look.
I personally think that depending on how the lineto outputs, we can use it with >2 floors elevators in order to determine if the elevator is higher or lower than a floor, something like that. But I can't see what you mean with trigger_look. You mean to calculate the distance between the point that you are looking at and the object which have to be looked at?--Hurricaaane 09:13, 31 Oct 2005 (PST)
The Elevator thought is interesting.
My thought about using it with a trigger_look was for a mod I'm helping with.
Would have to do with birds breaking through windows, at the right time.--wisemx 09:24, 31 Oct 2005 (PST)