<!-- 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; [setWeight](./server.entitymodelanimation.setweight.md)

## EntityModelAnimation.setWeight() method

Sets the weight of the entity model animation for blending with other playing animations.

**Signature:**

```typescript
setWeight(weight: number): void;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

weight


</td><td>

number


</td><td>

The weight of the entity model animation.

\*\*Side effects:\*\* Emits `EntityModelAnimationEvent.SET_WEIGHT` when spawned.

\*\*Category:\*\* Entities


</td></tr>
</tbody></table>
**Returns:**

void

