<- CRPL reference <- Terrain and Wall Commands

IsTerrainLOS

Arguments Result Notation
X, Y, targetX, targetY 0 or 1 x1 y1 x2 y2 -- b1

Description

Checks if there is a line of sight from the starting coordinates to the target coordinates. Line of sight means that the target terrain is at or lower than the starting terrain and that a path from the start to the target does not cross terrain that is higher.

Examples

example goes here