BIS fnc EXP camp playSubtitles: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| *(arg|eff|mp|serverExec|gr[0-9]) *= *(.*) * *\|([^=]{12})" to "|$1=$2 |descr=$3")
m (Text replacement - "\| *arma3 * * *\| *([0-2]\.[0-9]{2}) * " to "|game1= arma3 |version1= $1 ")
Line 1: Line 1:
{{RV|type=function
{{RV|type=function


| arma3
|game1= arma3
 
|version1= 1.62
|1.62


|gr1= GUI
|gr1= GUI

Revision as of 23:47, 13 June 2021

Hover & click on the images for description

Description

Description:
Displays the given subtitles at the correctly defined moments. Each array added to the parameters represents one subtitle.
Subtitles can be cancel by setting BIS_fnc_EXP_camp_playSubtitles_terminate to true.
Execution:
spawn
Groups:
GUI

Syntax

Syntax:
[subtitleDetail1, subtitleDetail2, ...] spawn BIS_fnc_EXP_camp_playSubtitles
Parameters:
subtitleDetailN: Array - format [speaker, text, timing]:
  • speaker: String - Name of the speaker
  • text: String - Subtitle
  • timing: Number - Time at which the subtitle is played
Return Value:
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", "Subtitle5", 15] ] spawn BIS_fnc_EXP_camp_playSubtitles; // Displays 4 subtitles with 5 seconds between them

Additional Information

See also:
Conversations BIS_fnc_showSubtitle

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note