Postby Chad » Thu Mar 20, 2014 12:04 am
Create two events, I'll call them "Delay" and "Hide". "Delay" should trigger "Hide" in a certain number of seconds, while "Hide" should just hide the generator layer. Link the generated NPC's "Activate" trigger to the "Delay" event. That way, the generator is set to stop a certain amount of time after the first one comes out.
The amount of seconds you apply to "Delay" depends on how frequent the generator is and how many instances you want spawned. So for example, if you have a generator that spawns every 2 seconds and you only want it to create 3 NPCs, set the number of seconds on the "Delay" event to something like 5 or 6 seconds. Experiment with the time a little to get the results you want, because you have to factor in that most NPCs take about half a second to come out, and you don't want the last one disappearing while it's halfway out or anything like that.
I hope this explanation wasn't too confusing, but that's the basic idea.
Last edited by
Chad on Thu Mar 20, 2014 12:06 am, edited 1 time in total.