I'm essentially trying to change the translation of an actor through a function, but, I can't seem to get it working as a string.
Here's an example:
Code: Select all
class TranslationTest : ZombieMan
{
override void BeginPlay()
{
if(target.player)
{
let player = target.player;
Color col = player.GetColor();
Translation = String.Format("0:255=#[%i,%i,%i]", col.r, col.g, col.b);
}
}
}
I can put numbers for the translation, but not a string, so, I don't know what to do here.
Any help would be appreciated.
Thank you!