DisplayTextToPlayer
- Parameters
-
toPlayer player
target player
x real
new text box position (default is 0, clamped to: 0.0-1.0)
y real
new text box position (default is 0, clamped to: 0.0-1.0)
message string
text (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
DisplayTimedTextToPlayer
withduration
set to 4.- note
See:
DisplayTimedTextToPlayer
,DisplayTimedTextFromPlayer
,BlzDisplayChatMessage
.- patch
1.00
- Source
- common.j
- return type
nothing
- Source code
native DisplayTextToPlayer takes player toPlayer, real x, real y, string message returns nothing