- Home /
Trigger Flame Particles
Hi there.
Im basically trying to get the player to walk through a trigger and when they do it activates the flame particles that surround the area but I don't even know where to begin. Any help would be much appreciated.
Answer by Ludiares.du · Nov 08, 2011 at 06:25 PM
function OnTriggerEnter(other : Collision)
{
particleemitter.emit = true;
}
this would simply activate the flames when whatever touches the trigger
im getting an error saying that particleemitter is an unknown identifer. These flames are a prefab so there's more than one particle emitter in them. Again Im at a lost as I find coding very difficult to get my head around and i do appreciate your help
I think it is supposed to be particleEmitter.emit = true;
With a capital "E"
Answer by LDKS150 · Nov 09, 2011 at 10:18 PM
Where do I assign this? I've got a trigger called flames, but the flames themselves are made of an inner core and an outer core it doesn't seem to be working.
You assign it to a trigger that surrounds the are you want to activate the flames. Also, don't post questions or comments as answers, use the add new comment button.
Your answer
Follow this Question
Related Questions
Can't click gameobject when over another trigger? 1 Answer
How Do I Move A Ghost On Trigger 1 Answer
Should Physics.Raycast() hit a Trigger on a disabled GameObject? 1 Answer
Jumpscare (Triggers and stuff) 1 Answer
traffic system 0 Answers