How to create an invisible narrator
This tutorial explains how to create an invisible narrator for cutscenes etc. If you don't know how to create dialog I recommend that you read the dialog tutorial first.
6 easy steps :
- Place a LevelMaster in your map (Pawn->LicenseePawn->U2Pawn->U2PawnBase).
- Create a new dialog file for the cutscene narration. In this .dlg file you create a very simple chain of dialog nodes that connect to each other. Make the Player the speaker of every node, and add the "HideChoices=true" line to every node. This will make the player's dialog play automatically, instead of asking for user input first.
- If you need help with the syntax take a look at ../Dialog/CS_Outro/DorianGray_04.dlg in the U2 directory, this is an exact example of how the dialog should be written.
- If you're using audio files for the dialog make sure that you add ",Player" at the end of all SoundFile= lines. This plays all dialog sounds at full volume, no matter how far away the speakers are. Again, look at DorianGray_04.dlg for examples.
- Create an empty AI script for the LevelMaster to use, then set his CommandFileName to this .u2s file.
- In the LevelMaster's AI script, use the "dialogfar" command to initiate dialog with the player and to play the narration. For example "dialogfar DorianGray_04_002 player". You can check out ../Scripts/CS_Outro/CS_OutroDialog.u2s for an example of how it's done.
In the game, trigger the LevelMaster to initiate dialog.
Tutorial by Matthias Worch