Has Line of Sight (Condition) — Skript

Addon: Skript · Category: Condition · Since: 2.8.0

Syntax

%livingentities% (has|have) [a] [direct] line of sight to %entities/locations%

Description

Checks whether living entities have an unobstructed line of sight to other entities or locations.

Examples

player has direct line of sight to location 5 blocks to the right of player
victim has line of sight to attacker
player has no line of sight to location 100 blocks in front of player

View source