11.12.2011, 00:38
look, a car default health is 1000, so i put it in percentage by dividing it by ten, then i remove the 25 where the car catch in fire, this will get me 75 when its full, so for a percentage it would be : (health/75)*100. then, i want it to be reversed, so i do 100-(health/75)*100, it work in real life but when i run that in the game it return 0, 100 or 200 %...