This is not really a mod question, more of a coding question.
Does anyone know of a fool proof way to format text using a target_print entity?
I have been wrestling with this for a bit now and I cannot seem to get any consistancy out of it.
If I use color codes on a message they work correctly on the first line but once the line wraps the color goes back to the default white.
I tried to control the text with a
as a line feed and then reinserting the color format back in, but this is where the unpredictable results come in.
"^3 Silly fool, don't you know that
^3steam is hot?"
Results in the following:
Silly fool, don’t you know that
steam
is hot?
It seems like the game reads the length of the message string first and determines where to wrap the text on a new line and then when it processes the string it inserts the embeded newline character, wraps the line there and then wraps it again where it originally wanted to.
I suppose I could leave it all white but on a outdoor winter map it is hard to see.
Any ideas?