UNPKG

hytopia

Version:

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

58 lines (28 loc) 944 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; [setClampWhenFinished](./server.entitymodelanimation.setclampwhenfinished.md) ## EntityModelAnimation.setClampWhenFinished() method Sets whether the animation should clamp when finished, holding the last frame. **Signature:** ```typescript setClampWhenFinished(clampWhenFinished: boolean): void; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> clampWhenFinished </td><td> boolean </td><td> Whether to clamp when finished. \*\*Side effects:\*\* Emits `EntityModelAnimationEvent.SET_CLAMP_WHEN_FINISHED` when spawned. \*\*Category:\*\* Entities </td></tr> </tbody></table> **Returns:** void