How to make HP in % ?
#1

I saw in another servers that health is in %.How to do that ?
Reply
#2

Get the health and then format a message. Use %% to get the percent symbol.
Reply
#3

Additionally, you can do this with vehicle health values by dividing it by ten (since the max health for vehicles is 1000). So, 1000/10 is 100 being the max value. If the car had 500 health points (half of the max) it would be 50.
Reply
#4

Quote:
Originally Posted by admantis
Посмотреть сообщение
Additionally, you can do this with vehicle health values by dividing it by ten (since the max health for vehicles is 1000). So, 1000/10 is 100 being the max value. If the car had 500 health points (half of the max) it would be 50.
Vehicles catch on fire at 250.0hp then explode at 0.0hp so that is not a good idea as it would be very misleading.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)