{"name":"BIS_fnc_EXP_camp_playSubtitles","operator":null,"title":"BIS fnc EXP camp playSubtitles","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_EXP_camp_playSubtitles","revid":364461,"updated":"2024-05-16T20:41:49Z","groups":["GUI"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.62"}],"since":{"game":"arma3","name":"Arma 3","version":"1.62"},"arma3_since":"1.62","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":"spawn","description":"Displays the given subtitles at the correctly defined moments. Each array added to the parameters represents one subtitle.\n\n> [!NOTE]\n> Subtitles can be cancelled by setting `BIS_fnc_EXP_camp_playSubtitles_terminate` to true.","syntaxes":[{"syntax":"[subtitleDetail1, subtitleDetail2, ...] spawn BIS_fnc_EXP_camp_playSubtitles","since":null,"effect":null,"exec":null,"params":[{"name":"subtitleDetailN","type":"Array","optional":false,"default":null,"description":"format [speaker, text, timing]:\n- speaker: String - speaker's name\n- text: String - subtitle\n- timing: Number - time at which the subtitle is played","types":["Array"],"since":null,"text":"subtitleDetailN: Array - format [speaker, text, timing]:\n- speaker: String - speaker's name\n- text: String - subtitle\n- timing: Number - time at which the subtitle is played"}],"returns":{"type":"Boolean","types":["Boolean"],"description":"true if successful, false if not","text":"Boolean - true if successful, false if not"}}],"examples":[{"text":"```sqf\n[\n    [\"CROSSROAD\", \"Mission is a go, I repeat, mission is a go! Crossroad, out.\", 0]\n] spawn BIS_fnc_EXP_camp_playSubtitles; // shows a subtitle immediately\n```","code":["[\n\t[\"CROSSROAD\", \"Mission is a go, I repeat, mission is a go! Crossroad, out.\", 0]\n] spawn BIS_fnc_EXP_camp_playSubtitles; // shows a subtitle immediately"]},{"text":"```sqf\n[\n    [\"Speaker1\", \"Subtitle1\", 0],\n    [\"Speaker2\", \"Subtitle2\", 5],\n    [\"Speaker3\", \"Subtitle3\", 10],\n    [\"Speaker4\", \"Subtitle4\", 15]\n] spawn BIS_fnc_EXP_camp_playSubtitles; // displays 4 subtitles with 5 seconds between them\n\nsleep 7;\nBIS_fnc_EXP_camp_playSubtitles_terminate = true; // closes subtitles\n```","code":["[\n\t[\"Speaker1\", \"Subtitle1\", 0],\n\t[\"Speaker2\", \"Subtitle2\", 5],\n\t[\"Speaker3\", \"Subtitle3\", 10],\n\t[\"Speaker4\", \"Subtitle4\", 15]\n] spawn BIS_fnc_EXP_camp_playSubtitles; // displays 4 subtitles with 5 seconds between them\n\nsleep 7;\nBIS_fnc_EXP_camp_playSubtitles_terminate = true; // closes subtitles"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["Conversations","BIS_fnc_showSubtitle"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: GUI","Functions","Introduced with Arma 3 version 1.62"],"docblock":null,"filled_from_docblock":[]}