Dialog Action: Difference between revisions
From FSDeveloper Wiki
Jump to navigationJump to search
mNo edit summary |
(Added descriptions for element properties, possible uses, and related elements) |
||
| Line 1: | Line 1: | ||
[[Category:MSFS Mission Script]] | [[Category:MSFS Mission Script]] | ||
{{:Ambox-Content-WIP}} | {{:Ambox-Content-WIP}} | ||
{{Infobox-Applicable-FSVersion | {{Infobox-Applicable-FSVersion | ||
| MSFS = true | | MSFS = true | ||
| Line 21: | Line 19: | ||
| XP9 = false | | XP9 = false | ||
}} | }} | ||
This plays dialog for the copilot and atc. It can use sound files or text-to-speech (TTS). The dialogAction can also show subtitles. | |||
{{Infobox-MSFS-Script-Element | {{Infobox-MSFS-Script-Element | ||
| category = Actions | |||
| name = DialogAction | | name = DialogAction | ||
| short-descr = | | short-descr = Fires when a counter reaches a specified target. | ||
}} | }} | ||
!Text | |||
|'''Mandatory''' text for the subtitles and Text-To-Speech. Can be [[MSFS Localisation|localized]]. | |||
|- | |||
!SoundFileName | |||
|File name of the sound to be played. Put your sound files in the '''sound folder'''. | |||
|- | |||
!PackageName | |||
| | |||
|- | |||
!DelaySeconds | |||
|Time to wait before the next action. Useful for pacing your dialog | |||
|- | |||
!TargetPlayer | |||
| | |||
|- | |||
!Skippable | |||
| | |||
|- | |||
!Speaker | |||
|Each speaker has a separate channel which can only play one file at a time. Possible values are:<br>NARRATOR, INSTRUCTOR, COPILOT | |||
|- | |||
!Priority | |||
| | |||
|- | |||
!CanBeSuspended | |||
| | |||
|- | |||
!EndActions | |||
|You can link actions to play after the dialog has finished. | |||
|- | |||
!EndActions DelaySeconds | |||
|How long to wait before activating the '''EndActions'''. | |||
{{Infobox-MSFS-Script-Element-End}} | |||
Adding dialog to your mission gives it a new level and enables you to better tell stories and make a cool experience. You can use the build in Text-To-Speech or your own audio recordings. | |||
== Possible uses == | |||
* ATC chatter | |||
* Let the copilot give feedback on the landing | |||
== Related elements and alternatives == | |||
* For non-dialog sounds use a [[One_Shot_Sound_Action|OneShotSoundAction]], [[Play_Sound_Action|PlaySoundAction]], or [[Sound_Effect_Action|SoundEffectAction]]. | |||
* For music use a [[Play_List_Action|PlayListAction]] | |||
Revision as of 14:58, 6 October 2021
| This page is a work-in-progress. Generic message - Please note some detail may possibly be missing or incorrect. |
| Applicable |
|---|
| MSFS |
| MS Flight |
| LM P3D5 |
| LM P3D4 |
| LM P3D3 |
| LM P3D2 |
| LM P3D |
| FS World |
| FSXSE |
| FSXA |
| FSX |
| FS2004 |
| FS2002 |
| XP11 |
| XP10 |
| XP9 |
This plays dialog for the copilot and atc. It can use sound files or text-to-speech (TTS). The dialogAction can also show subtitles.
DialogAction
Fires when a counter reaches a specified target.
| Text | Mandatory text for the subtitles and Text-To-Speech. Can be localized. |
|---|---|
| SoundFileName | File name of the sound to be played. Put your sound files in the sound folder. |
| PackageName | |
| DelaySeconds | Time to wait before the next action. Useful for pacing your dialog |
| TargetPlayer | |
| Skippable | |
| Speaker | Each speaker has a separate channel which can only play one file at a time. Possible values are: NARRATOR, INSTRUCTOR, COPILOT |
| Priority | |
| CanBeSuspended | |
| EndActions | You can link actions to play after the dialog has finished. |
| EndActions DelaySeconds | How long to wait before activating the EndActions. |
Adding dialog to your mission gives it a new level and enables you to better tell stories and make a cool experience. You can use the build in Text-To-Speech or your own audio recordings.
Possible uses
- ATC chatter
- Let the copilot give feedback on the landing
Related elements and alternatives
- For non-dialog sounds use a OneShotSoundAction, PlaySoundAction, or SoundEffectAction.
- For music use a PlayListAction