DisplayTimedTextFromPlayer
- Parameters
toPlayer playerthis player's name will be used to replace the
%splaceholderx 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)
duration realtext lifetime in seconds
message stringtext (supports color codes), may contain only one
%splaceholder- comment
Displays a trigger message to all players but the first "%s" in the message will be replaced by
GetPlayerName(toPlayer).- bug
Only the first "%s" will be replaced correctly. Following "%s" will be printed as garbage or (v1.32.10, Lua) crash the game.
Using formatters like "%i" will also print garbage and following "%s" won't work either.
- note
A better name for the parameter
toPlayerwould befromPlayer.- note
See:
DisplayTextToPlayerfor the full description. Also:DisplayTimedTextToPlayer,BlzDisplayChatMessage.- patch
1.00
- Source
- common.j (raise an issue to discuss on Github or submit a PR)
- return type
nothing- Source code
native DisplayTimedTextFromPlayer takes player toPlayer, real x, real y, real duration, string message returns nothing