# PathFree

Landscape
5.1 OC
bool
int x1 X coordinate of the start point
int y1 Y coordinate of the start point
int x2 X coordinate of the end point
int y2 Y coordinate of the end point
Determines whether the path from the start point to the end point is free, meaning that no solid material is intersected by a directly line between those points.
All coordinates are global, even in local calls.
// for all living beings in a circle with a radius of 500 around it for(var living in FindObjects(Find_OCF(OCF_Alive),Find_Distance(500))) { // incinerate if the path is free if(PathFree(GetX(),GetY(),GetX(living),GetY(living))) living->Incinerate(); }
Eye of the beholder: Incinerates all living beings in a distance of maximum 500 pixels and if the beholder has a line-of-sight to it.
GetMaterial
GBackSolid
GetPathLength
Sven2
2002-08