# Find_OnLine

Objects
Search
5.1 OC
array
int x1 X coordinate of the starting point. Relative to the calling object's center in local calls.
int y1 Y coordinate of the starting point. Relative to the calling object's center in local calls.
int x2 X coordinate of the end point. Relative to the calling object's center in local calls.
int y2 Y coordinate of the end point. Relative to the calling object's center in local calls.
Search criterion: finds all objects which overlap a line going from one point to the other.
This is equivalent to checking Find_AtPoint for each point on the line.
For additional information on the use of this function see FindObjects.
for
(var obj in FindObjects( Find_OnLine(0,0, LandscapeWidth()-GetX(),0), Find_OCF(OCF_Alive) )) obj->Kill();
Railgun: Kills everything that's on the same height right of the executing object.
FindObjects
FindObjects
PeterW
2011