Function; Subtitle_Message - HWRM/KarosGraveyard GitHub Wiki

Subtitle_Message(<message>, <duration>)

Description

Displays the given message in the center of the screen for the specified duration. This only happens for the player who ran the script (or the human player in singleplayer).

Arguments

Param Type Description
message string A string to display.
duration number The duration to display the message for, in seconds.

Examples

Subtitle_Message("This message displays for three seconds!", 3);
-- only display the message for player 1:
if (Universe_CurrentPlayer() == 1) then
  Subtitle_Message("Hello player 1", 5);
end

Related Pages

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