Lua:speak

From Cheat Engine
Revision as of 13:14, 19 June 2017 by Igromanru (talk | contribs) (Samples)
Jump to navigation Jump to search

function speak(text, waittilldone OPTIONAL)

function speak(text, flags)

Function Parameters

Parameter Type Description
text String Text that should be spoken.
waittilldone Boolean If true, the next LUA instruction will not execute until the text is spoken.
flags Bit-field https://msdn.microsoft.com/en-us/library/speechplatform_speakflags.aspx

Samples

Simple speak:

speak("Say hello to my little friend.")

Read text from a file text.txt from the same directory as the table:

speak(TrainerOrigin.."test.txt", SPF_IS_FILENAME)

See also

Related Functions