UNPKG

hytopia

Version:

The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.

58 lines (28 loc) 1.14 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [server](./server.md) &gt; [Entity](./server.entity.md) &gt; [stopAllModelAnimations](./server.entity.stopallmodelanimations.md) ## Entity.stopAllModelAnimations() method Stops all model animations for the entity, optionally excluding the provided animations from stopping. **Signature:** ```typescript stopAllModelAnimations(exclusionFilter?: (modelAnimation: Readonly<EntityModelAnimation>) => boolean): void; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> exclusionFilter </td><td> (modelAnimation: Readonly&lt;[EntityModelAnimation](./server.entitymodelanimation.md)<!-- -->&gt;) =&gt; boolean </td><td> _(Optional)_ The filter to determine if a model animation should be excluded from being stopped. \*\*Side effects:\*\* May emit `EntityModelAnimationEvent.STOP` for each stopped animation. \*\*Category:\*\* Entities </td></tr> </tbody></table> **Returns:** void