hytopia
Version:
The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.
58 lines (28 loc) • 916 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [server](./server.md) > [PlayerEntity](./server.playerentity.md) > [setTickWithPlayerInputEnabled](./server.playerentity.settickwithplayerinputenabled.md)
## PlayerEntity.setTickWithPlayerInputEnabled() method
Enables or disables `tickWithPlayerInput()` during the entity's tick.
Use for: temporarily disabling player control (cutscenes, menus, stuns).
**Signature:**
```typescript
setTickWithPlayerInputEnabled(enabled: boolean): void;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
enabled
</td><td>
boolean
</td><td>
Whether `tickWithPlayerInput()` should be called.
\*\*Category:\*\* Entities
</td></tr>
</tbody></table>
**Returns:**
void