Function DisplayTimedTextToPlayer

  • Displays a trigger message to player with a custom display duration.

    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)

    • duration: number

      text lifetime in seconds

    • message: string

      text (supports color codes)

    Returns void

    Note

    See: DisplayTextToPlayer for the full description. Also: DisplayTimedTextFromPlayer, BlzDisplayChatMessage.

Generated using TypeDoc