# sm.localPlayer.getLatestRaycast

Returns the latest interaction raycast result of the local player. This is the raycast that is constantly performed to detect interactable objects up to a range of 7.5.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.localPlayer.getLatestRaycast(  )
```

[Open the full Game reference](../Game-Script-Environment/Static-Functions/sm.localPlayer.md#getlatestraycast)

**Availability:** Client only

**Returns:**

| Type | Description |
| --- | --- |
| bool | True if raycast was successful |
| [RaycastResult](../Game-Script-Environment/Userdata/RaycastResult.md) | Raycast result data. |
