# sm.localPlayer.updateFpAnimation

Updates a first person view animation.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.localPlayer.updateFpAnimation( name, time, weight?, looping? )
```

[Open the full Game reference](../Game-Script-Environment/Static-Functions/sm.localPlayer.md#updatefpanimation)

**Availability:** Client only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `name` | string | The name. |
| `time` | number | The time. |
| `weight` *(optional)* | number | The weight. (Defaults to -1.0) |
| `looping` *(optional)* | boolean | The looping. (Defaults to false) |
