{"name":"text","title":"text","type":"command","url":"https://community.bistudio.com/wiki/text","revid":320624,"updated":"2022-05-13T09:38:21Z","groups":["Locations","Strings","Structured Text"],"status":"ok","games":{"arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma1 1.00","arma3_since":"0.50","description":"Creates a structured text containing the given plain text if argument is String. Use setAttributes to set additional attributes on the text. If the argument is location, returns location's text value (see Alt Syntax).","syntaxes":[{"syntax":"text string","params":[{"name":"string","type":"String","type_expr":"String"}],"returns":{"type":"Structured Text","type_expr":"Structured Text"},"form":"unary","right":{"text":"string"}},{"syntax":"text location","params":[{"name":"location","type":"Location","type_expr":"Location"}],"returns":{"type":"String","type_expr":"String"},"form":"unary","right":{"text":"location"}}],"examples":[{"code":["_stxt2 = text \"Hello world.\";"]},{"code":["_townName = text myTownLocation;"]},{"code":["_loc = text nearestLocation [position player, \"NameMarine\"]; //\"Marina Bay\""]}],"see_also":["parseText","composeText","image","lineBreak","setText","createLocation","deleteLocation","drawLocation","locationPosition","locationNull","nearestLocation","nearestLocations","nearestLocationWithDubbing","name"]}