Bullet particles only fire once despite emission being enabled

Hi, I’m tearing my hair out at the moment - please help!

I’ve set it up so that the bullets emission is being turned on and off when an enemy comes into range but it’s not working properly if an enemy enters/exits/re-enters range. The bullets initially fire, but they don’t come back again after they’re switched off then on again.

I don’t think it’s the code because I can see from the inspector that the emission module is being correctly enabled/disabled/re-enabled but no particles are firing:

I’ve also tried wholesale replacing my script for Rick’s (copied from GitHub) and that made no difference.

I think it’s probably the particle system itself - if I set the emission rate to 1, it only seems to fire one bullet and no more. if I set it to 30 then it works “properly”. I’ve tried creating it from scratch several times to no avail.

I’m at a complete loss - please help!

Hi,

Try to set the Culling Mode to “Always Simulate”. Does that fix the issue?

Closing due to inactivity and assuming as resolved.
Please open a new question if the issue still persists

Privacy & Terms