BIS_fnc_EXP_camp_playSubtitles
- Runs with spawn
- Arma 3 v1.62
Function · Markdown · JSON · original wiki page
Description
Displays the given subtitles at the correctly defined moments. Each array added to the parameters represents one subtitle.
Note
Subtitles can be cancelled by setting
BIS_fnc_EXP_camp_playSubtitles_terminateto true.
Syntax
[subtitleDetail1, subtitleDetail2, ...] spawn BIS_fnc_EXP_camp_playSubtitles
Parameters:
subtitleDetailN: Array - format [speaker, text, timing]:
Returns: Boolean - true if successful, false if not
Examples
Example 1
[
["CROSSROAD", "Mission is a go, I repeat, mission is a go! Crossroad, out.", 0]
] spawn BIS_fnc_EXP_camp_playSubtitles; // shows a subtitle immediately
Example 2
[
["Speaker1", "Subtitle1", 0],
["Speaker2", "Subtitle2", 5],
["Speaker3", "Subtitle3", 10],
["Speaker4", "Subtitle4", 15]
] spawn BIS_fnc_EXP_camp_playSubtitles; // displays 4 subtitles with 5 seconds between them
sleep 7;
BIS_fnc_EXP_camp_playSubtitles_terminate = true; // closes subtitles