/* -------STATIC TEXTS (only fade in and out, no movement) */ //Simple text, one line, middle of the screen; titletext ["MISSION NAME By: Author name","plain"]; //Simple text, two lines, middle of the screen; titletext ["MISSION NAME By: Author name \n Date: HH:MM","plain"]; //Simple text, two lines, bottom of the screen; titletext ["MISSION NAME By: Author name \n Date: HH:MM","plain down"]; //Titletext with a variable containing structured text; a = format ["Mission name, By: Author name \n %1 : %2",str (date select 3),str (date select 4)]; titletext [a,"plain"]; /* --------------ANIMATED TEXTS (use predefined functions to animate the letters) */ //Individual letters appear quickly in random order, then disappear. Bottom right corner. any= ["Mission name" , "By: Author name" , "Date" ] spawn BIS_fnc_infoText; //Letters appear gradually, upper part of the screen, middle; any=[ [ ["Mission name","%1
"], ["Author name","%1
"], ["Date","%1"] ] ] spawn BIS_fnc_typeText; //Letters appear gradually, upper right corner of the screen, few effects added; // changed font, size and color any = [ [ ["Mission name","align = 'center' size = '0.7' font='PuristaBold'"], ["","
"], ["Author name","align = 'center' size = '0.8'","#aaaaaa"], ["","
"], ["Date","align = 'center' size = '0.7'"] ] ] spawn BIS_fnc_typeText2; //InfoText again with variables in the third line; // takes hours and minutes from the date command (in-game date, format YYYY:MM:DD:HH:MM) and displays them any= ["Mission name" , "By: Author name" , str (date select 3) + ":" + str (date select 4)] spawn BIS_fnc_infoText; //TypeText again with variables in the third line; //Same variation as above, only with different function. any=[ [ ["Mission name","%1
"], ["Author name","%1
"], [str (date select 3) + ":" + str (date select 4),"%1"] ] ] spawn BIS_fnc_typeText; //TypeText2 again with variables in the third line; any = [ [ ["Mission name","align = 'center' size = '0.7' font='PuristaBold'"], ["","
"], ["Author name","align = 'center' size = '0.7'","#aaaaaa"], ["","
"], [str (date select 3) + ":" + str (date select 4),"align = 'center' size = '0.7'"] ] ] spawn BIS_fnc_typeText2; /* Additional info: To pass to a new line, use the following: TitleText - \n InfoText - a new parameter ( ["blabla","new line","third line"] ) TypeText - ["text","%1
"], the
indicates that the next text will be on another line TypeText - ["","
"], To combine a fixed text with variables, you can use + if you are writing a structured text. A structured text is used in animated text variants and functions. str (date select 3) + ":" + str (date select 4) date select 3 = 6, date select 4 = 35 str 6 = 6, str 35 = 35 So now we have a text "6", a text ":" and "35" final result 6:35 TitleText or CutText don't support structured text as a part of the command. You can see in the advanced TitleText examples that I did the text formatting before using the command itself, that way I used structured text, saved it into a variable and only then used it in the command. */