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
sm.localPlayer.getLatestRaycast( )
Availability: Client only
Returns:
| Type | Description |
|---|---|
| bool | True if raycast was successful |
| RaycastResult | Raycast result data. |