percentage
#3

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 %...
Reply


Messages In This Thread
percentage - by gagnier91 - 11.12.2011, 00:15
Re: percentage - by MP2 - 11.12.2011, 00:20
Re : percentage - by gagnier91 - 11.12.2011, 00:38
Re: percentage - by MP2 - 11.12.2011, 00:55
Re : percentage - by gagnier91 - 11.12.2011, 00:58

Forum Jump:


Users browsing this thread: 2 Guest(s)