jakeplissken 81 Posted December 22, 2022 I am using this example to print procedural text on a billboard, but how do I print text from a variable in the middle of the text? It would be convenient to print the player`s name or something? #(rgb,1024,512,3)text(0,0,"rhs_digital_font", 0.1, "#302c64", "#302cff", "Hello and welcome\nto the server.") This would be much more useful this way. 1 Share this post Link to post Share on other sites
KiloSwiss 16 Posted February 21, 2023 _texture = [0, format["#(rgb,512,512,3)text(0, 1, ""PuristaBold"", 0.2, ""#ffffff00"", ""#6aa84f"", Hello %1\nWelcome to\nour server)", name player]]; object setObjectTexture _texture; Result: https://imgur.com/a/7MVaddX 2 Share this post Link to post Share on other sites
jakeplissken 81 Posted March 5, 2023 On 2/22/2023 at 7:14 AM, KiloSwiss said: _texture = [0, format["#(rgb,512,512,3)text(0, 1, ""PuristaBold"", 0.2, ""#ffffff00"", ""#6aa84f"", Hello %1\nWelcome to\nour server)", name player]]; object setObjectTexture _texture; Result: https://imgur.com/a/7MVaddX This works better. _texture = [0, format["#(rgb,512,512,3)text(0, 1, ""PuristaBold"", 0.1, ""#ffffff00"", ""#6aa84f"", Hello %1\nWelcome to\nour server\n)", profileName, "Gear up and get into the action."]]; this setObjectTexture _texture; 1 Share this post Link to post Share on other sites
Tankbuster 1747 Posted March 5, 2023 If you want a variable, you'll have to compile it... call compile format ['blubasewhiteboard setObjectTexture [0,"#(rgb,512,512,3)text(1, 1,""EtelkaMonospacePro"", 0.05, ""#FFFFFF00"", ""#FFFFFFFF"",%1)"]', name alpha_1 + str getplayerscores alpha_1] ; 3 Share this post Link to post Share on other sites