Function; Subtitle_Messagew - HWRM/KarosGraveyard GitHub Wiki

Subtitle_Messagew(<w_string>, <duration>)

Description

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:

Arguments

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.

Example

local player_name_wchar = Player_GetName(0);
Subtitle_Messagew(player_name_wchar, 5);

Related Pages

⚠️ **GitHub.com Fallback** ⚠️