Repair vehicle color issue

statik

Well-Known Member
Has anyone had this issue and found a fix?

I'm running Overwatch 0.2.5

With the remove vehicle parts script. When looking at a vehicle that needs repairs it shows all parts in green saying something like Repair <color='#ff000000'>

So you can't tell which part is which because they all look the same.
 
I think I found the fix, there was bad code. this is what it should look like, I have yet to test.

if (_damage >= 0.5) then {_color = "<t color=""#ff8800"">";}; //orange
if (_damage >= 0.9) then {_color = "<t color=""#ff0000"">";}; //red
 
The only thing that would cause this (if it's working normally by default) would be bad code you added to your fn_selfActions. A missing ' or " or }; etc.

Instead of flat out erroring it is managing to make it farther down the code until it hits the repairs where it errors instead.
 
The //repair code is original, and I have not made any changes. I have compared to other fan_self actions.sqf and that section of the code is the same.

So are you saying it could be an error in another section of code in fan_self actions.sqf?

I assumed it is due to the latest Overwatch 0.2.5 update...
 
It's an error elsewhere in the fn_selfActions causing it.
( if you want to test to be sure, set it to default and check)

If you want, pm me a pastebin of it and I'll take a look.
 
Back
Top