I’m trying to make a particle system for when a gun fires heres what I got -
<code>var destroyOnTime : float;
private var falseemit : float;
var particleEmitterObject : GameObject;
function Update () {
falseemit+= Time.deltaTime;
if(falseemit >= destroyOnTime){
particleEmitterObject.particleEmitter.emit = false;
}
if (Input.GetButtonDown("Fire1")) {
particleEmitterObject.particleEmitter.emit = true; }
}
but when I debug it the emitter starts by emitting it at the time that I set but after that I wont emit anything anymore what am I doing wrong?