Calculating Damage for new doors/ tires/ lights/panals?
#8

Well, it didn't work correctly... for two reasons.

In the example where 1048576 represented my GetVehicleDamageStatus output, I got this:

flp = 1048576
frp = 48576
rlp = 48576
rrp = 8576
windshield = 576
front_bumper = 76
rear_bumper = 6


Problem #1: (Which could be resolved by simple division) It showed the numbers after the first digit.
Problem #2: It ignored the what should have been 0 in frp (first number), resulting in it showing the value of rpl first.


Anyone know what to do? I could, like I mentioned forgive the first issue by dividing the intiger by a certain 10's ammount (So rrp/1000 would show 8 and not 8576). Just not sure...


UPDATE:

After searching pastebin, I ran across a solo piece of script I could find nowhere. This does excatly what I need, after some minor editing: http://pastebin.com/0pdKyzm1 (Gets all parts damage... 0 = bad & 1 = good)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)