SHMUP - shoot when at 360/n degree rotation

I have a Shoot em Up project where I have Primary (front gun) and Secondary fire (left and right guns).
I want to add a Tertiary fire mode where the ship rotates 360 degrees and every 45 degrees (1/8th of turn).
The alpha float value that I get from a timeline is not precise because I think its frame time based, so the values cant be checked with just a modulus (% - symbol).

I tried to use a node called inRange that should return a boolean if the value is within the range. The problem I have is that the ship doesn’t fire at the right moments and also fires too many times.
The project is based on an ongoing [YouTube][1] tutorial series.

If anyone knows a solution to my problem, I would really appreciate it
Thanks :slight_smile: