Shotgun Spread effect

So my new tower (Scuba) sprays bubbles in a random fan of 60 degrees. But the bubbles are currently aimed towards the side of the tower.
I’ve tried every combo of rng and it always causes this.
Use on Level (PORT)

2 Likes

Instead of getting rid of this, I would like to ask now, If someone could PLEASE tell me why the money given from the bubble attacks are such a massive decimal.
Just place a SCUBA and watch the money counter go crazy wide. It should be adding 0.2 but instead its like 0.97777788888880906878

2 Likes

well, you’d need to round the numbers in this case.

1 Like

I tried to use this, is there a way to round it specifically to the tenths place?

2 Likes

Yes.
((Math.round(A))*2)/10)

2 Likes

So this is using an expression, and not the built in rounding?

2 Likes

just copy it and it’ll prolly work

1 Like

Nothing happens when it’s imported

1 Like

That’s not quite right.

The expression you would want would be:

Math.round(A * 10) / 10

Although money is usually rounded to the hundredths place, which would be:

Math.round(A * 100) / 100
4 Likes

This helped, but it’s still giving massive decimals, I truly have no clue what’s causing this.

2 Likes

There are no massive decimals coming out of that expression for sure. Make sure that rounding is the very last step before displaying the value. In other words, make sure the output from that expression is what you are sending to your label.

Also, double check that the expression is correct.

3 Likes

image

1 Like