DisplayTextToPlayer
- Parameters
toPlayer playertarget player
x realnew text box position (default is 0, clamped to: 0.0-1.0)
y realnew text box position (default is 0, clamped to: 0.0-1.0)
message stringtext (supports color codes)
- comment
Displays a trigger message to player.
The text line fades out in the end.
- 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
DisplayTimedTextToPlayerwithdurationofStringLength(message) * 0.1 + 3.0.- note
See:
DisplayTimedTextToPlayer,DisplayTimedTextFromPlayer,BlzDisplayChatMessage.- patch
1.00
- Source
- common.j (suggest an edit or discuss on Github)
- return type
nothing- Source code
native DisplayTextToPlayer takes player toPlayer, real x, real y, string message returns nothing