I am trying to calculate a players accuracy when shooting.
here are my events
always set counter to (hits/misses)*100.0
this works fine when the percentage is 100% but as soon as a shot is missed the counter is set to 0 and never changes. I tried setting the counter to have floating point values but it still doesnt return a number.
what can i do to set a counter to the percentage of hits to misses?