Function; Subtitle_Messagew - HWRM/KarosGraveyard GitHub Wiki
Displays a message on the player's screen. In a singleplayer context this will always be the human player. In multiplayer, it appears that Universe_CurrentPlayer
is necessary to send messages to particular players.
Wide-char strings are not creatable by Lua - instead they come from the engine via a handlful of stock functions:
Param | Type | Description |
---|---|---|
w_string |
userdata |
A userdata value containing a wide-char string. |
duration |
number |
The duration to display the message for, in seconds. |
local player_name_wchar = Player_GetName(0);
Subtitle_Messagew(player_name_wchar, 5);