Activate a animation with collision?

how to play the animation of an entity when a specific entity collides with it