---
title: "Is In Line of Sight"
description: "Start pos, End pos, Barriers"
---

> Documentation Index
> Fetch the complete documentation index at: https://wiki.wrightkit.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Is In Line of Sight

## Description

Whether two positions have line of sight with each other.

## Snippet

```
Is In Line of Sight(Vector(0, 0, 0), Vector(0, 0, 0), Barriers DO NOT BLOCK LOS);
```

## Properties

**Returns**: _<span style="color: #c678dd">Boolean</span>_
**Parameters**: ==_Start Pos_==, ==_End Pos_==, ==_Barriers_==

> ==**Start Pos**==
> _Type: **Position** | **[Player](/constants/player/)**, Default: **[Vector](/values/vector/)**_
> The start position for the line-of-sight check. If a player is provided, a position 2 meters above the player's feet is used.

> ==**End Pos**==
> _Type: **Position** | **[Player](/constants/player/)**, Default: **[Vector](/values/vector/)**_
> The end position for the line-of-sight check. If a player is provided, a position 2 meters above the player's feet is used.

> ==**Barriers**==
> _Type: **BarrierLos**, Default: **Barriers DO NOT BLOCK LOS**_
> Defines how barriers affect line of sight. When considering whether a barrier belongs to an enemy, the allegiance of the player provided to start pos (if any) is used.

Source: https://wiki.wrightkit.dev/values/is-in-line-of-sight/index.mdx
