- Home /
How to Activate Particle System?
I want that when the Player do a certain action, a Particle System will appear. Basically to turn on/off the Particle System (visible/invisible).
static var ShowFire : boolean = false;
function Update () {
particleEmitter.emit = false;
if (ShowFire == true)
{
particleEmitter.emit = true;
}
}
I tried this and it didn't work, I get no errors, the Particle System is shown when I start the game. How can I solve this?
Comment
Could try doing this.particleEmitter.enabled = true/false also.
$$anonymous$$aybe code so it's like:
function Update () {
if (ShowFire == true) {
this.particleEmitter.enabled = true;
} else {
particleEmitter.enabled = false;
}
}
Your answer
Follow this Question
Related Questions
How can I make fatal particles? (C#) 1 Answer
Particle system not working. 1 Answer
Scaling particle emitter transform has odd results. 0 Answers
Particle delay 1 Answer
How do I make a particle emitter emit when a key is pressed? 1 Answer