{"name":"BIS_fnc_dynamicText","operator":null,"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","replaced_by":[],"games":[{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":"local","server_exec":false},"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","since":null,"effect":null,"exec":null,"params":[{"name":"text","type":"String","optional":false,"default":null,"description":"text to display","types":["String"],"since":null,"text":"text: String - text to display"},{"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","types":["Number","Array"],"since":null,"text":"x: Number or Array - (Optional, default -1)\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","types":["Number","Array"],"since":null,"text":"y: Number or Array - (Optional, default -1)\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","types":["Number"],"since":null,"text":"duration: Number - (Optional, default 4) display duration"},{"name":"fadeInTime","type":"Number","optional":true,"default":"1","description":"fade-in time","types":["Number"],"since":null,"text":"fadeInTime: Number - (Optional, default 1) fade-in time"},{"name":"deltaY","type":"Number","optional":true,"default":"0","description":"Y position delta:\n- = 0: Text will not move\n- > 0: Text will move down\n- < 0: Text will move up\n*duration* and the absolute *deltaY* value will influence the movement speed.","types":["Number"],"since":null,"text":"deltaY: Number - (Optional, default 0) Y position delta:\n- = 0: Text will not move\n- > 0: Text will move down\n- < 0: Text will move up\n*duration* and the absolute *deltaY* value will influence the movement speed."},{"name":"rscLayer","type":"Number","optional":false,"default":null,"description":"resource layer","types":["Number"],"since":null,"text":"rscLayer: Number - resource layer"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"}}],"examples":[{"text":"```sqf\n[\"<t color='#ff0000' size='.8'>Warning!<br />Stop doing what you are doing</t>\",-1,-1,4,1,0,789] spawn BIS_fnc_dynamicText;\n```","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;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["BIS_fnc_infoText","BIS_fnc_textTiles","BIS_fnc_typeText","BIS_fnc_typeText2","BIS_fnc_EXP_camp_SITREP"],"notes":[],"categories":["Arma 2: Operation Arrowhead: Functions","Arma 2: Operation Arrowhead: New Functions","Arma 3: Functions","Function Group: GUI","Functions","Functions: Local Effect","Introduced with Arma 2: Operation Arrowhead version 1.50","Take On Helicopters: Functions"],"docblock":null,"filled_from_docblock":[]}