{"name":"BIS_fnc_dynamicText","title":"BIS fnc dynamicText","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_dynamicText","revid":330683,"updated":"2022-10-21T17:13:50Z","groups":["GUI"],"status":"ok","games":{"arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2oa 1.50","arma3_since":"0.50","locality":{"effect":"local"},"exec":"spawn","description":"Shows dynamic opening credits or any type of text.","syntaxes":[{"syntax":"[text, x, y, duration, fadeInTime, deltaY, rscLayer] spawn BIS_fnc_dynamicText","params":[{"name":"text","type":"String","description":"text to display","type_expr":"String"},{"name":"x","type":"Number or Array","optional":true,"default":"-1","description":"Number - Position in x\n- Array\n  - 0: Position in x\n  - 1: Width of the control","type_expr":"Number | Array","text":"x: Number or Array - (Optional, default -1)\n\n- Number - Position in x\n- Array\n  - 0: Position in x\n  - 1: Width of the control"},{"name":"y","type":"Number or Array","optional":true,"default":"-1","description":"Number - Position in y\n- Array\n  - 0: Position in y\n  - 1: Height of the control","type_expr":"Number | Array","text":"y: Number or Array - (Optional, default -1)\n\n- Number - Position in y\n- Array\n  - 0: Position in y\n  - 1: Height of the control"},{"name":"duration","type":"Number","optional":true,"default":"4","description":"display duration","type_expr":"Number","text":"duration: Number - (Optional, default 4) display duration"},{"name":"fadeInTime","type":"Number","optional":true,"default":"1","description":"fade-in time","type_expr":"Number","text":"fadeInTime: Number - (Optional, default 1) fade-in time"},{"name":"deltaY","type":"Number","optional":true,"default":"0","description":"Y position delta:\n\n- = 0: Text will not move\n- > 0: Text will move down\n- < 0: Text will move up\n\n*duration* and the absolute *deltaY* value will influence the movement speed.","type_expr":"Number","text":"deltaY: Number - (Optional, default 0) Y position delta:\n\n- = 0: Text will not move\n- > 0: Text will move down\n- < 0: Text will move up\n\n*duration* and the absolute *deltaY* value will influence the movement speed."},{"name":"rscLayer","type":"Number","description":"resource layer","type_expr":"Number"}],"returns":{"type":"Nothing","type_expr":"Nothing"}}],"examples":[{"code":["[\"<t color='#ff0000' size='.8'>Warning!<br />Stop doing what you are doing</t>\",-1,-1,4,1,0,789] spawn BIS_fnc_dynamicText;"]}],"see_also":["BIS_fnc_infoText","BIS_fnc_textTiles","BIS_fnc_typeText","BIS_fnc_typeText2","BIS_fnc_EXP_camp_SITREP"]}