How does one create an attack where a stream of particles comes out of an empty while the left mouse button is held down? I can create the particle system, I just can’t get it to come out of the empty.
fire invisible bullets ( render switched off) with the particles attached as children
You can use the particleEmitter.emit property to switch emission on and off as desired:-
particleEmitter.emit = Input.GetMouseButton(0);
Make sure you have a Particle Animator Component attached with a constant X,Y,Z-force. You can then use Andeeee’s code to turn it on or off. Good luck! =)