Jump to content
mmods

Create dialogs

Recommended Posts

Hello. I'm creating a callout and i want to make my witness to talk when i press the "Y" button on the keyboard. I hope you can help me.

Share this post


Link to post
Share on other sites
private readonly List<string> dialogWithPed = new List<string>()
{
    "Officer: BLA BLA BLA",
    "Ped: BLA BLA BLA"
};
private int dialogWithPedIndex;
if (!Game.IsKeyDown(Keys.Y)) return;

if (dialogWithPedIndex < dialogWithPed.Count)
{
    Game.DisplaySubtitle(dialogWithPed[dialogWithPedIndex]);
    dialogWithPedIndex++;
}

if (dialogWithPedIndex == 2)
{
    //
}

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×