hytopia
Version:
The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.
56 lines (27 loc) • 802 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [server](./server.md) > [Player](./server.player.md) > [setMaxInteractDistance](./server.player.setmaxinteractdistance.md)
## Player.setMaxInteractDistance() method
Sets the maximum distance a player can interact with entities or blocks.
**Signature:**
```typescript
setMaxInteractDistance(distance: number): void;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
distance
</td><td>
number
</td><td>
The maximum distance in blocks used for the interact raycast.
\*\*Category:\*\* Players
</td></tr>
</tbody></table>
**Returns:**
void