TMap.RayCast

function RayCast(x1, y1, x2, y2: Single; Player, Flag, Bullet, CheckCollider: Boolean; Team: Byte): Boolean x1,y1: Coordinates of a starting point x2,y2: Coordinates of another point Player: if TRUE, Player collide polygons will be checked Flag: if TRUE, Flag collide polygons will be checked Bullet: if TRUE, Bullet collide polygons will be checked CheckCollider: if TRUE, colliders will be checked Team: if Player or Flag are TRUE, Team defines which team colliders are checked Result: FALSE if there are no colliders between the points, TRUE if there are

Description
This function will check whether there are colliders between two coordinates on the map.

Example
Below example check whether there is vision between a specified point and a player. Works only for player with ID = 1. To define 1st point, type "mark". To stop displaying, type "stop".