- Events for text transitions, TextTransitionSkipped, TextTransitionIndex. Example for playing a sound for the type writer effect (only sent from the fade effect):But honestly, as any other information is missing and I still have no acess to Visionaire's Wiki, I have no idea how to use it properly.
function engineEvent(type, data)
if type == "TextTransitionIndex" then
AudioBusses["Random"]:start()
end
end
registerEventHandler("engineEvent", "engineEvent")
local busToPlay = AudioBusses["Random"]
function txtStart(text)
if text.Owner == Characters["Name"] then
busToPlay = AudioBusses["Random"]
end
if text.Owner == Characters["Name2"] then
busToPlay = AudioBusses["Random2"]
end
end
registerEventHandler("textStarted","txtStart")
function engineEvent(type, data)
if type == "TextTransitionIndex" then
busToPlay:start()
end
if type == "TextTransitionSkipped" then
busToPlay:start()
end
end
registerEventHandler("engineEvent", "engineEvent")
1) You need the text owner from the text start.2) You need to call :stop() on TextTransitionSkippede.g.:local busToPlay = AudioBusses["Random"]
function txtStart(text) if text.Owner == Characters["Name"] then busToPlay = AudioBusses["Random"] end if text.Owner == Characters["Name2"] then busToPlay = AudioBusses["Random2"] end end
registerEventHandler("textStarted","txtStart")
function engineEvent(type, data) if type == "TextTransitionIndex" then busToPlay:start() end if type == "TextTransitionSkipped" then busToPlay:start() end end
registerEventHandler("engineEvent", "engineEvent")
if type == "TextTransitionSkipped" thenShould it be
busToPlay:start()
busToPlay:stop()here?