Hi all, I am trying to get a particle emitter to fire repeatedly whenever W is pressed however once released after the first press the particle emitter refuses to fire again. Here is the code I am using (JS obviously):
function Update () {
if (Input.GetKey (KeyCode.W))
{
particleEmitter.emit = true;
}
if (!Input.GetKey (KeyCode.W))
{
particleEmitter.emit = false;
}
}
Please help!! Thanks