I run the code below but after certain time dialogue disappears. Dialogue from actions stays on screen and they are skippable. I entered preventSkipping and isBackground parameters but I couldn't figure out the problem.
Code:
KickStarter.dialog.StartDialog(lastSpeech.speaker, currentMission.text, lastSpeech.isBackground, 1, lastSpeech.noAnimation, false);
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
What's the wider context of the code within the rest of your script?
I don't know what your Speech Manager settings are, but it's likely that your game needs to be placed in "Cutscene" mode for the speech to be considered gameplay-blocking.
This'll occur automatically if you play dialogue from an ActionList, but you can enforce AC's cutscene mode through script with:
Alternatively, if you want to generate Speech lines through script, you can do so by instead creating an ActionList with speech Actions in code, i.e.:
More details on this method can be found in the Manual's "Generating ActionLists through script" chapter.
My dialogues dont work in background and they are skipable mostly in game. So I tried to enforce cutscene mode but not exist. I couldn't find it.
In the beginning I didnt want to use actionlist, I tried to find a simple way unless you said. So I run the code and it works like I want. Thank you Chris.