Play animation with external trigger (Sprite manager 2)

How can I activate a packedsprite animation with an external trigger?

I want the player to walk into a trigger and then activate an animation further away.

I tried this script attached to a trigger object, but I can’t get it to work.

function OnTriggerEnter(col : Collider) {
 packedSprite.PlayAnim("hoppa");
}

Please help me out guys.

i think it must be like this :

 function OnTriggerEnter(col : Collider) {
          if(col.gameObject.tag == "objectTag") //tag or name
              {
                   packedSprite.PlayAnim("hoppa");
              }   
 
}