Jump to content
Sign in to follow this  
BEAKSBY

How to create a separate line in draw3D text

Recommended Posts

Hi all,

I can't seem to get the _text to create a separate line for the str _distance. I tried /n and <br> but they did not work. Is it even possible?

_text =  format ["%1 %2m", _displayName, (str _distance)];
	_picture = "";
	if (_x isKindOf "LandVehicle") then {_picture = getText (configfile >> "CfgVehicles" >> typeOf _x  >> "picture");
		} else {
		_icon =  getText (configFile >> "CfgVehicles" >> typeOf _x >> "Icon");
		_picture = getText (configFile >> "CfgVehicleIcons" >> _icon);  
	};
	_unitPos = getPosATL _x;

   drawIcon3D [
       _picture,
	[1,0,0,1],
       [(visiblePosition _x) select 0,(visiblePosition _x) select 1,((visiblePosition _x) select 2) + 10],
	0.8,
	0.5,
	0,
	_text,
	0,
	0.03,
	"PuristaMedium"
   ];

Edited by BEAKSBY

Share this post


Link to post
Share on other sites

Hi, BEAKSBY drawicon3d command only accept STRING, not STRUCTURED TEXT

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×