Skip to content

Function; Subtitle_Message_Handler

Sastrei edited this page Jun 19, 2020 · 1 revision

Subtitle_Message_Handler(<sText>, <fTime>, <SoundPath>, <iPlayer>)

Description

This function is called in "Data\leveldata\multiplayer\lib*.lua" files.
Used to make message, with sText and Sound speech to iPlayer.

Example

Subtitle_Message_Handler("$14780", 2, "data:sound\\speech\\allships\\emperor\\STATUS_NEWCRATE_1", playerIndex)

Arguments

  • <sText>: the text to display; it can be either a quoted string or the index of a localised string.
  • <fTime>: in seconds.
  • <SoundPath>: The way to the speech to play.
  • <iPlayer>: The index of player can see this message.
Clone this wiki locally