Wiki 1558 Posted December 22, 2014 Hi guys. I wonder: -how can I have the informations text at the beginning of a mission, just like in vanilla ArmA 3 campaign (you know, with the time, location, etc...) I know how to have the old ArmA 2 text, but I prefer to have the ArmA 3 kind -how to choose the size of the text on screen (for example, to show a title or a text on screen) -how to choose the place of the screen where I want the text to appear? Thanks! Share this post Link to post Share on other sites
Gilatar 272 Posted December 22, 2014 Try placing this in your init.sqf or a simple .sqf file if you want to attach it to a trigger: [ [ ["Time: 1900 Local"], ["Date: 19 October 2014"], ["Location: NATO Army Base - Western Altis, Greece", "<t align = 'center' shadow = '1' size = '0.8' font='puristaMedium'>%1</t>", 120] ] , 0.7, 0.75, "<t align = 'center' shadow = '1' size = '1..5'>%1</t>" ] spawn BIS_fnc_typeText; You can obviously change the text yourself, 'center' to 'left'/'right' and increase the size and change the font. Share this post Link to post Share on other sites
inlesco 234 Posted December 22, 2014 Download .pbo Extractor, extract campaign.pbos in A3/addons dir and investigate the code. You'll notice what BIS uses in various scenarios with diff situations. Share this post Link to post Share on other sites
Wiki 1558 Posted December 22, 2014 thanks, will try ASAP Share this post Link to post Share on other sites
Kydoimos 916 Posted December 23, 2014 Hi, Wiki - check this out: https://community.bistudio.com/wiki/BIS_fnc_typeText2 Share this post Link to post Share on other sites
Wiki 1558 Posted December 23, 2014 Ok thanks for your answers, I'll try it ASAP Share this post Link to post Share on other sites
Wiki 1558 Posted December 28, 2014 still doesn't work as I want. text doesn't show up like BIS made (or like you did Kyd in your campaign). Share this post Link to post Share on other sites
Wiki 1558 Posted January 4, 2015 Great, it works now, thanks! Share this post Link to post Share on other sites
TedHo 53 Posted January 5, 2015 Hi Wiki, I think BIS uses function BIS_fnc_camp_showOSD to automatically display time and location, however it is only defined in the A3 campaign description.ext, if you want to use it in your own missions just add this to your description.ext class CfgFunctions { class BIS { tag = "BIS"; class Timeline { file = "a3\missions_f_epa\Campaign_shared\Functions\Timeline"; class camp_showOSD {}; }; }; }; and then call [] call BIS_fnc_camp_showOSD I think what this does is it displays time and location (only supports Altis and Stratis). I could not get it to display mission name/character name without getting deep into the campaign config files. So I've been using my own function which does pretty much the same things except that it also receives mission title and player name as input parameters. Date and time is auto-detected. ["John Hawkins", "Northern Altis", "JUST ANOTHER DAY"] call IOT_fnc_missiontile; ["John Hawkins", "Northern Altis"] call IOT_fnc_missiontile; ["John Hawkins"] call IOT_fnc_missiontile; Here's the function. Just put it in a sqf file and define it in your description.ext. /* Author: ted_hou Description: Shows mission information in A3 style. - 'Mission Title' (Optional) - Time - Player Name - Location (Optional) Parameter(s): 0 : STRING - player name 1 (Optional): STRING - Location 2 (Optional): STRING - Mission title Returns: nothing Example: ["John Hawkins", "Northern Altis", "JUST ANOTHER DAY"] call IOT_fnc_missiontile; ["SUPERMAN", "Northern Altis"] call IOT_fnc_missiontile; ["SUPERMAN"] call IOT_fnc_missiontile; */ _playerName = _this select 0; _location = _this select 1; _title = _this select 2; _yy = date select 0; _mo = date select 1; _dd = date select 2; _hh = date select 3; _mm = date select 4; switch (count _this) do { case 1: { [ [ [format ["%1/%2/%3 ",_mo,_dd,_yy],"align = 'right' valign = 'bottom' size = '1'"], [format ["%1",[dayTime,"HH:MM"] call BIS_fnc_timeToString],"align = 'right' valign = 'bottom' size = '1' font = 'PuristaSemibold'"], ["","<br/>"], [_playerName,"align = 'right' valign = 'bottom' size = '1'"] ], -.75, 1.15, true, "<t>%1</t>" ] spawn BIS_fnc_typeText2; }; case 2: { [ [ [format ["%1/%2/%3 ",_mo,_dd,_yy],"align = 'right' valign = 'bottom' size = '1'"], [format ["%1",[dayTime,"HH:MM"] call BIS_fnc_timeToString],"align = 'right' valign = 'bottom' size = '1' font = 'PuristaSemibold'"], ["","<br/>"], [_playerName,"align = 'right' valign = 'bottom' size = '1'"], ["","<br/>"], [_location,"align = 'right' size = '1'"] ], -.75, 1.15, true, "<t>%1</t>" ] spawn BIS_fnc_typeText2; }; case 3: { [ [ [format ["'%1'", _title],"align = 'right' valign = 'bottom' size = '1' font = 'PuristaSemibold'"], ["","<br/>"], [format ["%1/%2/%3 ",_mo,_dd,_yy],"align = 'right' valign = 'bottom' size = '1'"], [format ["%1",[dayTime,"HH:MM"] call BIS_fnc_timeToString],"align = 'right' valign = 'bottom' size = '1' font = 'PuristaSemibold'"], ["","<br/>"], [_playerName,"align = 'right' valign = 'bottom' size = '1'"], ["","<br/>"], [_location,"align = 'right' size = '1'"] ], -.75, 1.15, true, "<t>%1</t>" ] spawn BIS_fnc_typeText2; }; default {}; }; Share this post Link to post Share on other sites