---
title: "Ray Cast Hit Player"
---

> 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.

# Ray Cast Hit Player

## Description

The player hit by the ray cast (or null if no player is hit). Ray casts ignore players with "Phased Out" status.

==_For a more in-depth guide on ray casts, check out Ray casts and You_==

## Snippet

```
Ray Cast Hit Player(Vector(0, 0, 0), Vector(0, 0, 0), All Players(All Teams), Event Player, True);
```

## Properties

**Returns**: _<span style="color: #c678dd">Player</span>_
**Parameters**: ==_Start Pos_==, ==_End Pos_==, ==_Players To Include_==, ==_Players To Exclude_==, ==_Include Player Owned Objects_==

> ==**Start Pos**==
> _Type: **Position**, Default: **[Vector](/values/vector/)**_
> The start position for the ray cast. If a player is provided, a position 2 meters above the player's feet is used.

> ==**End Pos**==
> _Type: **Position**, Default: **[Vector](/values/vector/)**_
> The end position for the ray cast. If a player is provided, a position 2 meters above the player's feet is used.

> ==**Players To Include**==
> _Type: **Array** (**Player**), Default: **[All Players](/values/all-players/)**_
> Which players can be hit by this ray cast.

> ==**Players To Exclude**==
> _Type: **Array** (**Player**), Default: **[Event Player](/values/event-player/)**_
> Which players cannot be hit by this ray cast. This list takes precedence over players to include.

> ==**Include Player Owned Objects**==
> _Type: **Boolean**, Default: **[True](/values/true/)**_
> Whether player-owned objects (such as barriers or turrets) should be included in the ray cast.

Source: https://wiki.wrightkit.dev/values/ray-cast-hit-player/index.mdx
