BIS fnc EXP camp playSubtitles: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\{\{( *)Informative( *)\|" to "{{$1Feature$2|$2Informative$2|") |
Lou Montana (talk | contribs) m (Text replacement - "{{Feature | Informative | " to "{{Feature|informative|") |
||
(14 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| arma3 | |game1= arma3 | ||
|version1= 1.62 | |||
|1.62 | |||
|gr1= GUI | |gr1= GUI | ||
| Displays the given subtitles at the correctly defined moments. Each array added to the parameters represents one subtitle. | |descr= Displays the given subtitles at the correctly defined moments. Each array added to the parameters represents one subtitle. | ||
{{Feature | | {{Feature|informative|Subtitles can be cancelled by setting {{hl|BIS_fnc_EXP_camp_playSubtitles_terminate}} to [[true]].}} | ||
| [subtitleDetail1, subtitleDetail2, ...] spawn [[BIS_fnc_EXP_camp_playSubtitles]] | |s1= [subtitleDetail1, subtitleDetail2, ...] spawn [[BIS_fnc_EXP_camp_playSubtitles]] | ||
|p1= subtitleDetailN: [[Array]] - format [speaker, text, timing]: | |p1= subtitleDetailN: [[Array]] - format [speaker, text, timing]: | ||
* speaker: [[String]] - | * speaker: [[String]] - speaker's name | ||
* text: [[String]] - | * text: [[String]] - subtitle | ||
* timing: [[Number]] - | * timing: [[Number]] - time at which the subtitle is played | ||
| [[Boolean]] - [[true]] if successful, [[false]] if not | |r1= [[Boolean]] - [[true]] if successful, [[false]] if not | ||
|x1= < | |x1= <sqf> | ||
[ | |||
["CROSSROAD", "Mission is a go, I repeat, mission is a go! Crossroad, out.", 0] | ["CROSSROAD", "Mission is a go, I repeat, mission is a go! Crossroad, out.", 0] | ||
] | ] spawn BIS_fnc_EXP_camp_playSubtitles; // shows a subtitle immediately | ||
|x2= < | </sqf> | ||
|x2= <sqf> | |||
[ | |||
["Speaker1", "Subtitle1", 0], | ["Speaker1", "Subtitle1", 0], | ||
["Speaker2", "Subtitle2", 5], | ["Speaker2", "Subtitle2", 5], | ||
["Speaker3", "Subtitle3", 10], | ["Speaker3", "Subtitle3", 10], | ||
["Speaker4", " | ["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 | |||
</sqf> | |||
|exec= spawn | |exec= spawn | ||
| [[Conversations]] [[BIS_fnc_showSubtitle]] | |seealso= [[Conversations]] [[BIS_fnc_showSubtitle]] | ||
}} | }} |
Latest revision as of 21:41, 16 May 2024
Description
- Description:
- Displays the given subtitles at the correctly defined moments. Each array added to the parameters represents one subtitle.
- Execution:
- spawn
- Groups:
- GUI
Syntax
- Syntax:
- [subtitleDetail1, subtitleDetail2, ...] spawn BIS_fnc_EXP_camp_playSubtitles
- Parameters:
- subtitleDetailN: Array - format [speaker, text, timing]:
- 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:
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