Hello,
I am hiding all the HUD when the game is paused or there is a cutscene.
I check it using this code:
private void EnterGameState(GameState gameState)
{
if (gameState.ToString() == "Paused" || gameState.ToString() == "Cutscene")
{
objectToHide.SetActive(false);
}
else if(!isHidden)
{
objectToHide.SetActive(true);
}
}
The problem is I don't want to hide the hud when the cutscene is a speech.
is it possible to check this? before hiding the hud?
Thanks
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Can you try with AC.Speech.isAlive or AC.Speech.IsScrolling() ?
sorry I forgot to mention my version.
using v1.71.7
are those variables available on 1.71?
they should be, it's 1.72.0 though
https://www.adventurecreator.org/scripting-guide/class_a_c_1_1_speech.html
Simply check it in your script.
They both take bools.
AC.KickStarter.dialog.GetLatestSpeech().isAlive seems to work thanks
Always happy to help fellow AC developers when I can
To simply know if any speech at all is playing at a given time, you can read:
Scripting guide entry