• Displays a trigger message to player.

    The text line fades out in the end.

    Parameters

    • toPlayer: Player<PlayerEventMap>

      target player

    • x: number

      new text box position (default is 0, clamped to: 0.0-1.0)

    • y: number

      new text box position (default is 0, clamped to: 0.0-1.0)

    • message: string

      text (supports color codes)

    Returns void

    Bug

    Changing x or y moves the entire text box, including previously displayed lines. An example is shown at Luashine/DisplayTextToPlayer-position

    Note

    The text lines are bottom-left aligned: text continues to the right and new lines continue upwards.

    Note

    This is equivalent to DisplayTimedTextToPlayer with duration set to 4.

    Note

    See: DisplayTimedTextToPlayer, DisplayTimedTextFromPlayer, BlzDisplayChatMessage.

Generated using TypeDoc