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