hytopia
Version:
The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.
26 lines (14 loc) • 702 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [server](./server.md) > [EntityModelAnimation](./server.entitymodelanimation.md) > [restart](./server.entitymodelanimation.restart.md)
## EntityModelAnimation.restart() method
Restarts the entity model animation from the beginning.
**Signature:**
```typescript
restart(): void;
```
**Returns:**
void
## Remarks
Unlike `play()`<!-- -->, this always emits even if the animation is already playing, allowing the animation to restart from the beginning.
\*\*Side effects:\*\* Emits `EntityModelAnimationEvent.RESTART` when spawned.
\*\*Category:\*\* Entities