Function; Subtitle_Message - HWRM/KarosGraveyard GitHub Wiki
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).
Param | Type | Description |
---|---|---|
message |
string |
A string to display. |
duration |
number |
The duration to display the message for, in seconds. |
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