# Animations

{% hint style="info" %}
**coherence** only replicates animation parameters, not state. Latency can create scenarios where different Clients reproduce different animations. Take this into account when working with Animator Controllers that require precise timings.
{% endhint %}

Unity Animator's parameters are bindable out of the box, **with the exception of triggers**.

![Guard, Walk, MovX and MovY parameters available on CoherenceSync as variables](https://352971571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOnNWMLfYsbCzCnIbNrcP%2Fuploads%2FHzskkfCWP7wKyBsz3C3K%2FScreenshot%202023-04-26%20102136.png?alt=media\&token=96a427cb-cb06-418b-b14b-02364e26b2f9)

### Triggers

Triggers can be invoked over the network using [commands](https://docs.coherence.io/1.0/coherence-sdk-for-unity/networking-state-changes/commands). Here's an example where we inform networked Clients that we have played a jump animation:

```csharp
using UnityEngine;
using Coherence;
using Coherence.Toolkit;

public class JumpController : MonoBehaviour
{
    CoherenceSync coherenceSync;
    Animator animator;

    void Awake()
    {
        coherenceSync = GetComponent<CoherenceSync>();
        animator = GetComponent<Animator>();
    }

    void Update()
    {
        if (!coherenceSync.HasInputAuthority)
        {
            return;
        }

        if (Input.GetKeyDown(KeyCode.Space))
        {
            MakePlayerJump();
        }
    }

    void MakePlayerJump()
    {
        coherenceSync.SendCommand<JumpController>(nameof(PlayJumpAnimation), MessageTarget.All, coherenceSync);
    }

    // bind to this method via the Bindings window
    public void PlayJumpAnimation(CoherenceSync jumpSync)
    {
        animator.SetTrigger("Jump");
    }
}
```

Now, bind the `PlayJumpAnimator` method as a [command](https://docs.coherence.io/1.0/coherence-sdk-for-unity/networking-state-changes/commands).

![PlayJumpAnimation command](https://352971571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOnNWMLfYsbCzCnIbNrcP%2Fuploads%2FU15fzybmhXRPPxbpLCqW%2Fspaces_OnNWMLfYsbCzCnIbNrcP_uploads_uKXXoPoFVA6lxu8y7eMl_Screenshot%202022-01-14%20at%2014.51.00.png?alt=media\&token=de4d0780-b469-489a-bbf9-de3992d22b3b)
