• Open/close the dialog for the target player.

    Since the dialogs are created for all players, they are hidden by default. Then you display the dialog to players who should see and interact with it.

    Parameters

    • whichPlayer: Player<PlayerEventMap>

      Target player to whom to show the dialog.

    • whichDialog: HandleHolder<"dialog">

      Target dialog.

    • flag: boolean

      true to show (or refresh), false to hide.

    Returns void

    Note

    Technically, because every player knows about each dialog, cheaters could interact with dialogs that are invisible to them.

    Note

    Dialogs can not be shown at map-init. Use a wait or a zero-timer to display it as soon as possible.

Generated using TypeDoc