Play particle effect upon animation trigger

So I have it set that space plays my character animation but how would I also make it play the particle effect for a short say 3 second burst at the same time?

Put this on the object with the emitter (untested):

var emitTime = 3.0
private var lastSpaceTime = 0;
private var pe : ParticleEmitter = null;

Start()
{
  pe = GetComponent(ParticleEmitter);
}

Update()
{
  if (Input.GetKeyDown("space"))
  {
    pe.emit = true;
    lastSpaceTime = Time.time;
  }

  if (pe.emit && (Time.time - lastSpaceTime) >= emitTime)
  {
    pe.emit = false;
  }
}