hytopia
Version:
The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.
58 lines (28 loc) • 950 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [server](./server.md) > [EntityModelAnimation](./server.entitymodelanimation.md) > [setLoopMode](./server.entitymodelanimation.setloopmode.md)
## EntityModelAnimation.setLoopMode() method
Sets the loop mode of the entity model animation.
**Signature:**
```typescript
setLoopMode(loopMode: EntityModelAnimationLoopMode): void;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
loopMode
</td><td>
[EntityModelAnimationLoopMode](./server.entitymodelanimationloopmode.md)
</td><td>
The loop mode of the entity model animation.
\*\*Side effects:\*\* Emits `EntityModelAnimationEvent.SET_LOOP_MODE` when spawned.
\*\*Category:\*\* Entities
</td></tr>
</tbody></table>
**Returns:**
void