Well im stuck with this scripts, so what I wanted to do is if I press Fire1 so it plays an animation, an emitter and a sound, with time delay.
Any help, im really not a programer more tenden for the design and arts :-?
I got this just for the emiter
var emissionTime : float = 3.0;
var emissionDelay : float = 3.0;
var lastTime = 12.0;
function Update()
{
if (Input.GetButton("Fire1"))
{
GetComponent(ParticleAnimator).autodestruct = false;
particleEmitter.emit = true;
lastTime = Time.time;
}
if (particleEmitter.emit (Time.time - lastTime) > emissionTime)
{
particleEmitter.emit = false;
}
}
But doesnt reconise component ParticleAnimator.