UNPKG

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
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [server](./server.md) &gt; [EntityModelAnimation](./server.entitymodelanimation.md) &gt; [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